mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-10 07:05:51 +00:00
ci: release: never move the "latest" image tag (testing)
Drop the "latest" tag from every release step that could publish it: the per-arch kata-deploy images, the multi-arch kata-deploy manifest, and the kata-monitor images/manifest. This guarantees a release run from this branch can never move the "latest" tag of any published image while we test the rest of the pipeline.
This commit is contained in:
3
.github/workflows/release-amd64.yaml
vendored
3
.github/workflows/release-amd64.yaml
vendored
@@ -74,7 +74,8 @@ jobs:
|
||||
tag=$(echo "$GITHUB_REF" | cut -d/ -f3-)
|
||||
if [ "${tag}" = "main" ]; then
|
||||
tag=$(./tools/packaging/release/release.sh release-version)
|
||||
tags=("${tag}" "latest")
|
||||
# TESTING: drop "latest" so a run from this branch never moves it.
|
||||
tags=("${tag}")
|
||||
else
|
||||
tags=("${tag}")
|
||||
fi
|
||||
|
||||
3
.github/workflows/release-arm64.yaml
vendored
3
.github/workflows/release-arm64.yaml
vendored
@@ -74,7 +74,8 @@ jobs:
|
||||
tag=$(echo "$GITHUB_REF" | cut -d/ -f3-)
|
||||
if [ "${tag}" = "main" ]; then
|
||||
tag=$(./tools/packaging/release/release.sh release-version)
|
||||
tags=("${tag}" "latest")
|
||||
# TESTING: drop "latest" so a run from this branch never moves it.
|
||||
tags=("${tag}")
|
||||
else
|
||||
tags=("${tag}")
|
||||
fi
|
||||
|
||||
10
.github/workflows/release-kata-images.yaml
vendored
10
.github/workflows/release-kata-images.yaml
vendored
@@ -35,10 +35,10 @@ jobs:
|
||||
tag=$(echo "${GITHUB_REF}" | cut -d/ -f3-)
|
||||
if [ "${tag}" = "main" ]; then
|
||||
tag=$(./tools/packaging/release/release.sh release-version)
|
||||
echo "tags=${tag} latest" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "tags=${tag}" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
# TESTING: never include the "latest" tag so a run from this branch
|
||||
# can never move the "latest" image tag.
|
||||
echo "tags=${tag}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
publish-monitor:
|
||||
needs: resolve-tags
|
||||
@@ -65,7 +65,9 @@ jobs:
|
||||
commit-hash: ${{ github.sha }}
|
||||
registry: quay.io
|
||||
repo: kata-containers/kata-monitor
|
||||
tag: latest
|
||||
# TESTING: fallback tag must not be "latest" so a run from this branch
|
||||
# can never move the "latest" image tag (tags below overrides this anyway).
|
||||
tag: ${{ needs.resolve-tags.outputs.tags }}
|
||||
tags: ${{ needs.resolve-tags.outputs.tags }}
|
||||
tag-suffix: ${{ matrix.tag_suffix }}
|
||||
runner: ${{ matrix.runner }}
|
||||
|
||||
3
.github/workflows/release-ppc64le.yaml
vendored
3
.github/workflows/release-ppc64le.yaml
vendored
@@ -71,7 +71,8 @@ jobs:
|
||||
tag=$(echo "$GITHUB_REF" | cut -d/ -f3-)
|
||||
if [ "${tag}" = "main" ]; then
|
||||
tag=$(./tools/packaging/release/release.sh release-version)
|
||||
tags=("${tag}" "latest")
|
||||
# TESTING: drop "latest" so a run from this branch never moves it.
|
||||
tags=("${tag}")
|
||||
else
|
||||
tags=("${tag}")
|
||||
fi
|
||||
|
||||
3
.github/workflows/release-s390x.yaml
vendored
3
.github/workflows/release-s390x.yaml
vendored
@@ -72,7 +72,8 @@ jobs:
|
||||
tag=$(echo "$GITHUB_REF" | cut -d/ -f3-)
|
||||
if [ "${tag}" = "main" ]; then
|
||||
tag=$(./tools/packaging/release/release.sh release-version)
|
||||
tags=("${tag}" "latest")
|
||||
# TESTING: drop "latest" so a run from this branch never moves it.
|
||||
tags=("${tag}")
|
||||
else
|
||||
tags=("${tag}")
|
||||
fi
|
||||
|
||||
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
@@ -121,7 +121,9 @@ jobs:
|
||||
- name: Get the image tags
|
||||
run: |
|
||||
release_version=$(./tools/packaging/release/release.sh release-version)
|
||||
echo "KATA_DEPLOY_IMAGE_TAGS=$release_version latest" >> "$GITHUB_ENV"
|
||||
# TESTING: do NOT include the "latest" tag so a run from this branch
|
||||
# can never move the "latest" image tag.
|
||||
echo "KATA_DEPLOY_IMAGE_TAGS=$release_version" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Publish multi-arch manifest on quay.io & ghcr.io
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user