Skip to content

Commit 6caad96

Browse files
committed
Fix: Provided Correct Tag for Build stage
1 parent 8dd7e6a commit 6caad96

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,16 @@ jobs:
4141
- name: Login to DockerHub
4242
uses: docker/login-action@v3
4343
with:
44-
username: ${{ secrets.DOCKER_USERNAME }}
45-
password: ${{ secrets.DOCKER_TOKEN }}
44+
username: ${{ secrets.DOCKERHUB_USERNAME }}
45+
password: ${{ secrets.DOCKERHUB_TOKEN }}
4646

4747
- name: Build and push Docker image
4848
uses: docker/build-push-action@v5
4949
with:
5050
context: .
5151
push: true
52-
tags: ${{ secrets.DOCKER_USERNAME }}/go_webapp:latest
52+
tags: |
53+
${{ secrets.DOCKERHUB_USERNAME }}/go_webapp:latest
54+
${{ secrets.DOCKERHUB_USERNAME }}/go_webapp:${{ github.sha }}
5355
cache-from: type=gha
5456
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)