Skip to content

Commit a754e9d

Browse files
authored
Update docker.yml (#81)
1 parent 7cf5a2b commit a754e9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
flavor:
4848
latest=false
4949
tags: |
50-
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
50+
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && github.event_name == 'push' }}
5151
type=raw,value=${{ github.event.inputs.VERSION }},enable=${{ github.event_name == 'workflow_dispatch' }}
5252
type=ref,event=pr
5353
type=semver,pattern={{version}}
@@ -57,7 +57,7 @@ jobs:
5757
id: docker_build
5858
uses: docker/build-push-action@v6
5959
with:
60-
push: ${{ github.event_name == 'push' }}
60+
push: ${{ github.event_name == 'push' || github.event.inputs.VERSION != '' }}
6161
platforms: linux/amd64,linux/arm64
6262
tags: ${{ steps.meta.outputs.tags }}
6363
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)