mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-01 08:56:32 +00:00
release: Adjust tags used to publish our deamonset
We need to adjust the tags as when this workflow ends up being called from the release side, we'll receive "refs/tags/main" as the GITHUB_REF, and in that case we must use the release version. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
8
.github/workflows/release-amd64.yaml
vendored
8
.github/workflows/release-amd64.yaml
vendored
@@ -41,8 +41,12 @@ jobs:
|
|||||||
# We need to do such trick here as the format of the $GITHUB_REF
|
# We need to do such trick here as the format of the $GITHUB_REF
|
||||||
# is "refs/tags/<tag>"
|
# is "refs/tags/<tag>"
|
||||||
tag=$(echo $GITHUB_REF | cut -d/ -f3-)
|
tag=$(echo $GITHUB_REF | cut -d/ -f3-)
|
||||||
tags=($tag)
|
if [ "${tag}" = "main" ]; then
|
||||||
tags+=($([[ "$tag" =~ "alpha"|"rc" ]] && echo "latest" || echo "stable"))
|
tag=$(./tools/packaging/release/release.sh next-release-version)
|
||||||
|
tags=(${tag} "latest")
|
||||||
|
else
|
||||||
|
tags=(${tag})
|
||||||
|
fi
|
||||||
for tag in ${tags[@]}; do
|
for tag in ${tags[@]}; do
|
||||||
./tools/packaging/kata-deploy/local-build/kata-deploy-build-and-upload-payload.sh \
|
./tools/packaging/kata-deploy/local-build/kata-deploy-build-and-upload-payload.sh \
|
||||||
$(pwd)/kata-static.tar.xz "docker.io/katadocker/kata-deploy" \
|
$(pwd)/kata-static.tar.xz "docker.io/katadocker/kata-deploy" \
|
||||||
|
8
.github/workflows/release-arm64.yaml
vendored
8
.github/workflows/release-arm64.yaml
vendored
@@ -41,8 +41,12 @@ jobs:
|
|||||||
# We need to do such trick here as the format of the $GITHUB_REF
|
# We need to do such trick here as the format of the $GITHUB_REF
|
||||||
# is "refs/tags/<tag>"
|
# is "refs/tags/<tag>"
|
||||||
tag=$(echo $GITHUB_REF | cut -d/ -f3-)
|
tag=$(echo $GITHUB_REF | cut -d/ -f3-)
|
||||||
tags=($tag)
|
if [ "${tag}" = "main" ]; then
|
||||||
tags+=($([[ "$tag" =~ "alpha"|"rc" ]] && echo "latest" || echo "stable"))
|
tag=$(./tools/packaging/release/release.sh next-release-version)
|
||||||
|
tags=(${tag} "latest")
|
||||||
|
else
|
||||||
|
tags=(${tag})
|
||||||
|
fi
|
||||||
for tag in ${tags[@]}; do
|
for tag in ${tags[@]}; do
|
||||||
./tools/packaging/kata-deploy/local-build/kata-deploy-build-and-upload-payload.sh \
|
./tools/packaging/kata-deploy/local-build/kata-deploy-build-and-upload-payload.sh \
|
||||||
$(pwd)/kata-static.tar.xz "docker.io/katadocker/kata-deploy" \
|
$(pwd)/kata-static.tar.xz "docker.io/katadocker/kata-deploy" \
|
||||||
|
8
.github/workflows/release-ppc64le.yaml
vendored
8
.github/workflows/release-ppc64le.yaml
vendored
@@ -41,8 +41,12 @@ jobs:
|
|||||||
# We need to do such trick here as the format of the $GITHUB_REF
|
# We need to do such trick here as the format of the $GITHUB_REF
|
||||||
# is "refs/tags/<tag>"
|
# is "refs/tags/<tag>"
|
||||||
tag=$(echo $GITHUB_REF | cut -d/ -f3-)
|
tag=$(echo $GITHUB_REF | cut -d/ -f3-)
|
||||||
tags=($tag)
|
if [ "${tag}" = "main" ]; then
|
||||||
tags+=($([[ "$tag" =~ "alpha"|"rc" ]] && echo "latest" || echo "stable"))
|
tag=$(./tools/packaging/release/release.sh next-release-version)
|
||||||
|
tags=(${tag} "latest")
|
||||||
|
else
|
||||||
|
tags=(${tag})
|
||||||
|
fi
|
||||||
for tag in ${tags[@]}; do
|
for tag in ${tags[@]}; do
|
||||||
./tools/packaging/kata-deploy/local-build/kata-deploy-build-and-upload-payload.sh \
|
./tools/packaging/kata-deploy/local-build/kata-deploy-build-and-upload-payload.sh \
|
||||||
$(pwd)/kata-static.tar.xz "docker.io/katadocker/kata-deploy" \
|
$(pwd)/kata-static.tar.xz "docker.io/katadocker/kata-deploy" \
|
||||||
|
8
.github/workflows/release-s390x.yaml
vendored
8
.github/workflows/release-s390x.yaml
vendored
@@ -42,8 +42,12 @@ jobs:
|
|||||||
# We need to do such trick here as the format of the $GITHUB_REF
|
# We need to do such trick here as the format of the $GITHUB_REF
|
||||||
# is "refs/tags/<tag>"
|
# is "refs/tags/<tag>"
|
||||||
tag=$(echo $GITHUB_REF | cut -d/ -f3-)
|
tag=$(echo $GITHUB_REF | cut -d/ -f3-)
|
||||||
tags=($tag)
|
if [ "${tag}" = "main" ]; then
|
||||||
tags+=($([[ "$tag" =~ "alpha"|"rc" ]] && echo "latest" || echo "stable"))
|
tag=$(./tools/packaging/release/release.sh next-release-version)
|
||||||
|
tags=(${tag} "latest")
|
||||||
|
else
|
||||||
|
tags=(${tag})
|
||||||
|
fi
|
||||||
for tag in ${tags[@]}; do
|
for tag in ${tags[@]}; do
|
||||||
./tools/packaging/kata-deploy/local-build/kata-deploy-build-and-upload-payload.sh \
|
./tools/packaging/kata-deploy/local-build/kata-deploy-build-and-upload-payload.sh \
|
||||||
$(pwd)/kata-static.tar.xz "docker.io/katadocker/kata-deploy" \
|
$(pwd)/kata-static.tar.xz "docker.io/katadocker/kata-deploy" \
|
||||||
|
Reference in New Issue
Block a user