Skip to content

Commit 732c485

Browse files
committed
ci: fix create docker image based on reference instead of branch
1 parent 8fd0ee5 commit 732c485

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release-manual-docker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ jobs:
4343
with:
4444
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4545
flavor: |
46-
latest=${{ steps.branch.outputs.branch_name == 'master' }}
46+
latest=${{ steps.branch.outputs.branch_name == 'master' && github.event.inputs.ref == '' }}
47+
tags: |
48+
type=semver,pattern=${{ github.event.inputs.ref }}
4749
- name: Build and push Docker image
4850
uses: docker/build-push-action@v2
4951
with:

0 commit comments

Comments
 (0)