Skip to content

Commit cb6295e

Browse files
authored
fix image tag when pushing a git tag
1 parent 3af1c05 commit cb6295e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/dockerhub.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
tags: |
2525
# set latest tag for master branch
2626
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
27+
# set tag when pushing a tag
28+
type=ref,event=tag
2729
- name: Login to DockerHub
2830
uses: docker/login-action@v1
2931
with:

0 commit comments

Comments
 (0)