Skip to content

Commit 18b9619

Browse files
committed
only update latest when not an rc
1 parent b1541ba commit 18b9619

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release-container.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ jobs:
9898
docker manifest annotate $FQDN:latest $FQDN:$VERSION-amd64 --arch amd64
9999
docker manifest annotate $FQDN:latest $FQDN:$VERSION-arm64 --arch arm64
100100
- name: Push the multiarch manifests
101+
shell: bash
101102
run: |
102103
docker manifest push $FQDN:$VERSION
103-
docker manifest push $FQDN:latest
104+
105+
# Only push the latest tag if this isn't a release candidate (ends with
106+
# `rc.#`.
107+
if [[ ! "$VERSION" =~ -rc\.[0-9]+$ ]]; then
108+
docker manifest push $FQDN:latest
109+
fi

0 commit comments

Comments
 (0)