Skip to content

Commit cc0bd8f

Browse files
committed
put in release tag recording
1 parent 1bda65f commit cc0bd8f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎build/root/install.sh‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
set -e
55

66
# release tag name from buildx arg, stripped of build ver using string manipulation
7-
RELEASETAG="${1//-[0-9][0-9]/}"
7+
RELEASETAG="${1}"
88

99
# target arch from buildx arg
1010
TARGETARCH="${2}"
@@ -19,6 +19,9 @@ if [[ -z "${TARGETARCH}" ]]; then
1919
exit 1
2020
fi
2121

22+
# write RELEASETAG to file to record the release tag used to build the image
23+
echo "IMAGE_RELEASE_TAG=${RELEASETAG}" >> '/etc/image-release'
24+
2225
# build scripts
2326
####
2427

0 commit comments

Comments
 (0)