Skip to content

Commit ecb1d27

Browse files
Push image to DockerHub
1 parent ff33bd5 commit ecb1d27

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,16 @@ jobs:
2424
run: dotnet build --no-restore
2525
- name: Test
2626
run: dotnet test --no-build --verbosity normal
27+
28+
- name: Login to Docker Hub
29+
uses: docker/login-action@v2
30+
with:
31+
username: ${{ secrets.DOCKERHUB_USERNAME }}
32+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
33+
34+
- name: Build and push Docker image
35+
uses: docker/build-push-action@v4
36+
with:
37+
context: .
38+
push: true
39+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/kubernetestestapp:latest

0 commit comments

Comments
 (0)