Skip to content

Commit 07e859d

Browse files
committed
Add docker build
1 parent 9f2a84e commit 07e859d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@ jobs:
2323
files: '["**/environment.prod.ts"]'
2424
env:
2525
TOKEN_APPLICATION_VERSION: "${{ env.TURNIERPLAN_APPLICATION_VERSION }}"
26+
- name: Login to Docker Hub
27+
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
28+
with:
29+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
30+
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
31+
- name: 'Build and push container image'
32+
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
33+
with:
34+
context: ./src
35+
file: ./src/Turnierplan.App/Dockerfile
36+
push: true
37+
tags: 'turnierplan-net:latest,turnierplan-net:${{ env.TURNIERPLAN_APPLICATION_VERSION }}'
2638

2739
# nuget-package:
2840
# name: 'Build NuGet package'

0 commit comments

Comments
 (0)