Added per-branch 'latest' OCI tag for buildable branches.

This commit is contained in:
sg committed 2026-06-25 18:04:31 +02:00
1 parent 2c38f327e4
commit 6fa4b8cbda
2 files changed
+1 -7

No files matched your search

-5
View File
@@ -31,12 +31,7 @@ case "${INPUT_IMAGE_NAME}" in
esac
workdir="${PWD}/repo"
sha_tag="${INPUT_GIT_SHA}"
latest_tag="latest"
local_image="localbuild:${INPUT_IMAGE_TAG}"
remote_image="${INPUT_REGISTRY}/${INPUT_IMAGE_NAME}:${INPUT_IMAGE_TAG}"
remote_image_sha="${INPUT_REGISTRY}/${INPUT_IMAGE_NAME}:${sha_tag}"
remote_image_latest="${INPUT_REGISTRY}/${INPUT_IMAGE_NAME}:${latest_tag}"
rm -rf "${workdir}"
mkdir -p "${workdir}"
+1 -2
View File
@@ -32,9 +32,8 @@ esac
workdir="${PWD}/repo"
sha_tag="${INPUT_GIT_SHA}"
latest_tag="latest"
latest_tag="${INPUT_IMAGE_TAG}"
local_image="localbuild:${INPUT_IMAGE_TAG}"
remote_image="${INPUT_REGISTRY}/${INPUT_IMAGE_NAME}:${INPUT_IMAGE_TAG}"
remote_image_sha="${INPUT_REGISTRY}/${INPUT_IMAGE_NAME}:${sha_tag}"
remote_image_latest="${INPUT_REGISTRY}/${INPUT_IMAGE_NAME}:${latest_tag}"
echo "${INPUT_REGISTRY_TOKEN}" | docker login "${INPUT_REGISTRY}" -u "${INPUT_REGISTRY_USER}" --password-stdin