Skip to content

Commit 856c42a

Browse files
authored
Update docker-publish.yml
1 parent 1d4ecfc commit 856c42a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/docker-publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ jobs:
2020
uses: actions/checkout@v2
2121
- name: Set up Docker Buildx
2222
uses: docker/setup-buildx-action@v2
23+
- name: Log in to Docker Hub
24+
uses: docker/login-action@v2
25+
with:
26+
username: ${{ secrets.DOCKER_USERNAME }}
27+
password: ${{ secrets.DOCKER_PASSWORD }}
2328
- name: Build and Push Image
2429
id: docker_build
2530
uses: docker/build-push-action@v4
2631
with:
2732
context: .
2833
push: true
2934
tags: ${{ env.IMAGE_NAME }}:1.${{ github.run_number }}
30-
env:
31-
DOCKER_USERNAME: ${{ env.DOCKER_USERNAME }}
32-
DOCKER_PASSWORD: ${{ env.DOCKER_PASSWORD }}

0 commit comments

Comments
 (0)