Skip to content

050-docker-build-workflow #1

050-docker-build-workflow

050-docker-build-workflow #1

name: 050-docker-build-workflow
on:
push:
branches: none # [ main ]
pull_request:
branches: none # [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-container:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
working-directory: 03-app-dotnet
run: docker build . --file Dockerfile --tag my-app-dotnet:$(date +%s)