We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9327f6 commit 6bfc6d8Copy full SHA for 6bfc6d8
1 file changed
.github/workflows/docker-publish.yml
@@ -39,11 +39,20 @@ jobs:
39
username: ${{ github.actor }}
40
password: ${{ secrets.GITHUB_TOKEN }}
41
42
+ - name: Log in to Docker Hub
43
+ if: github.event_name != 'pull_request'
44
+ uses: docker/login-action@v3
45
+ with:
46
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
47
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
48
+
49
- name: Extract metadata (tags, labels) for Docker
50
id: meta
51
uses: docker/metadata-action@v5
52
with:
- images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
53
+ images: |
54
+ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
55
+ ${{ env.IMAGE_NAME }}
56
tags: |
57
type=ref,event=branch
58
type=ref,event=pr
0 commit comments