We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dd7e6a commit 6caad96Copy full SHA for 6caad96
.github/workflows/ci.yml
@@ -41,14 +41,16 @@ jobs:
41
- name: Login to DockerHub
42
uses: docker/login-action@v3
43
with:
44
- username: ${{ secrets.DOCKER_USERNAME }}
45
- password: ${{ secrets.DOCKER_TOKEN }}
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
46
47
- name: Build and push Docker image
48
uses: docker/build-push-action@v5
49
50
context: .
51
push: true
52
- tags: ${{ secrets.DOCKER_USERNAME }}/go_webapp:latest
+ tags: |
53
+ ${{ secrets.DOCKERHUB_USERNAME }}/go_webapp:latest
54
+ ${{ secrets.DOCKERHUB_USERNAME }}/go_webapp:${{ github.sha }}
55
cache-from: type=gha
56
cache-to: type=gha,mode=max
0 commit comments