Skip to content

Commit 278c2d6

Browse files
committed
Update release-manual-docker.yml
1 parent 8b4a465 commit 278c2d6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,11 @@ jobs:
4242
uses: docker/metadata-action@v3
4343
with:
4444
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
45-
# The following parameter is modified to manually make pre-releases on the `master` branch;
46-
# change this accordingly before adding release automation.
4745
flavor: |
48-
latest=false
49-
# The following parameter is modified to manually make pre-releases on the `master` branch;
50-
# change this accordingly before adding release automation.
46+
latest=${{ steps.branch.outputs.branch_name == 'release' && github.event.inputs.ref == '' }}
5147
tags: |
5248
type=semver,enable=true,pattern={{version}},value=${{ github.event.inputs.ref }}
49+
type=raw,enable=${{ github.event.inputs.ref == '' }},value=latest
5350
- name: Build and push Docker image
5451
uses: docker/build-push-action@v2
5552
with:

0 commit comments

Comments
 (0)