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