From 11fd594a4f51b05d0c91ed75735e2a68583bc7d0 Mon Sep 17 00:00:00 2001 From: binhex Date: Mon, 22 Jul 2024 12:48:18 +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 ec5594e..e548199 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 ####