From eb5c1a833ed90970d2e3a638666408106dc64375 Mon Sep 17 00:00:00 2001 From: binhex Date: Mon, 22 Jul 2024 12:47:29 +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 3d7041f..e1e492c 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' + # build scripts ####