Skip to content

Commit 8ba9d0b

Browse files
authored
fix: release lates container image (#725)
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent 497a103 commit 8ba9d0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ jobs:
232232
- name: Publish Container Image to DockerHub for version "${{ env.VERSION }}"
233233
run: docker push "$DOCKERHUB_REPO:$VERSION"
234234
- name: Publish Container Image to DockerHub as "latest"
235-
if: ${{ !cancelled() && github.event.inputs.prerelease == 'false' }}
235+
if: ${{ github.event.inputs.prerelease == 'false' }}
236236
run: docker push "$DOCKERHUB_REPO:latest"
237237
# endregion
238238
# region publish to GHCR
@@ -246,7 +246,7 @@ jobs:
246246
- name: Publish Container Image to GHCR for version "${{ env.VERSION }}"
247247
run: docker push "$GHCR_REPO:$VERSION"
248248
- name: Publish Container Image to GHCR as "latest"
249-
if: ${{ !cancelled() && github.event.inputs.prerelease == 'false' }}
249+
if: ${{ github.event.inputs.prerelease == 'false' }}
250250
run: docker push "$GHCR_REPO:latest"
251251
# endregion
252252
# TODO: publish all files in $REPORTS_DIR as release assets - see https://github.com/actions/upload-release-asset

0 commit comments

Comments
 (0)