Added per-branch 'latest' OCI tag for buildable branches.
This commit is contained in:
1 parent
2c38f327e4
commit
6fa4b8cbda
2 files changed
+1
-7
No files matched your search
@@ -31,12 +31,7 @@ case "${INPUT_IMAGE_NAME}" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
workdir="${PWD}/repo"
|
workdir="${PWD}/repo"
|
||||||
sha_tag="${INPUT_GIT_SHA}"
|
|
||||||
latest_tag="latest"
|
|
||||||
local_image="localbuild:${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}"
|
|
||||||
|
|
||||||
rm -rf "${workdir}"
|
rm -rf "${workdir}"
|
||||||
mkdir -p "${workdir}"
|
mkdir -p "${workdir}"
|
||||||
|
|||||||
@@ -32,9 +32,8 @@ esac
|
|||||||
|
|
||||||
workdir="${PWD}/repo"
|
workdir="${PWD}/repo"
|
||||||
sha_tag="${INPUT_GIT_SHA}"
|
sha_tag="${INPUT_GIT_SHA}"
|
||||||
latest_tag="latest"
|
latest_tag="${INPUT_IMAGE_TAG}"
|
||||||
local_image="localbuild:${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_sha="${INPUT_REGISTRY}/${INPUT_IMAGE_NAME}:${sha_tag}"
|
||||||
remote_image_latest="${INPUT_REGISTRY}/${INPUT_IMAGE_NAME}:${latest_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
|
echo "${INPUT_REGISTRY_TOKEN}" | docker login "${INPUT_REGISTRY}" -u "${INPUT_REGISTRY_USER}" --password-stdin
|
||||||
|
|||||||
Reference in new issue
Block a user