From 5987df60d343985877e3ba865836a21cf63c07dd Mon Sep 17 00:00:00 2001 From: binhex Date: Mon, 22 Jul 2024 12:47:52 +0100 Subject: [PATCH] put in release tag recording --- build/root/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/root/install.sh b/build/root/install.sh index e55bc6d..d360835 100644 --- a/build/root/install.sh +++ b/build/root/install.sh @@ -4,7 +4,7 @@ set -e # release tag name from buildx arg, stripped of build ver using string manipulation -RELEASETAG="${1//-[0-9][0-9]/}" +RELEASETAG="${1}" # target arch from buildx arg TARGETARCH="${2}" @@ -19,6 +19,9 @@ if [[ -z "${TARGETARCH}" ]]; then exit 1 fi +# write RELEASETAG to file to record the release tag used to build the image +echo "IMAGE_RELEASE_TAG=${RELEASETAG}" >> '/etc/image-release' + # note do NOT download build scripts - inherited from int script with envvars common defined # get target arch from Dockerfile argument