@@ -123,6 +123,12 @@ finalize_platform_core_image() {
123
123
fi
124
124
125
125
docker tag hpccsystems/platform-core:$GIT_BRANCH -$MODE -$crc incr-core:$MODE
126
+
127
+ # Create additional name tag if specified
128
+ if [ -n " $NAME_TAG " ]; then
129
+ echo " --- Creating additional tag: $NAME_TAG ---"
130
+ docker tag hpccsystems/platform-core:$GIT_BRANCH -$MODE -$crc hpccsystems/platform-core:$NAME_TAG
131
+ fi
126
132
}
127
133
128
134
finalize_platform_core_image_from_folder () {
@@ -143,6 +149,13 @@ finalize_platform_core_image_from_folder() {
143
149
docker commit $CONTAINER hpccsystems/platform-core:build
144
150
echo " --- Remove '$CONTAINER ' container ---"
145
151
docker rm -f $CONTAINER
152
+
153
+ # Create additional name tag if specified
154
+ if [ -n " $NAME_TAG " ]; then
155
+ echo " --- Creating additional tag: $NAME_TAG ---"
156
+ docker tag hpccsystems/platform-core:build hpccsystems/platform-core:$NAME_TAG
157
+ fi
158
+
146
159
echo " docker run --entrypoint /bin/bash -it platform-core:build"
147
160
echo " platform-core:build"
148
161
}
@@ -168,6 +181,12 @@ finalize_platform_core_image_from_deb() {
168
181
docker exec --user root $CONTAINER /bin/bash -c " eclcc -pch"
169
182
docker commit $CONTAINER hpccsystems/platform-core:$filename
170
183
docker rm -f $CONTAINER
184
+
185
+ # Create additional name tag if specified
186
+ if [ -n " $NAME_TAG " ]; then
187
+ echo " --- Creating additional tag: $NAME_TAG ---"
188
+ docker tag hpccsystems/platform-core:$filename hpccsystems/platform-core:$NAME_TAG
189
+ fi
171
190
}
172
191
173
192
clean () {
@@ -389,6 +408,7 @@ status() {
389
408
echo " RELEASE_BASE_IMAGE: $RELEASE_BASE_IMAGE "
390
409
echo " HPCC_BUILD: $HPCC_BUILD "
391
410
echo " ARCH: $ARCH "
411
+ echo " NAME_TAG: $NAME_TAG "
392
412
}
393
413
394
414
# Print usage information
@@ -406,6 +426,7 @@ usage() {
406
426
echo " will preserve build state per branch"
407
427
echo " -r, --reconfigure reconfigure CMake before building"
408
428
echo " -a, --architecture override default architecture (x64 or arm64)"
429
+ echo " -n, --name-tag create an additional tag with the specified name for the final image"
409
430
}
410
431
411
432
# Set default values
@@ -417,6 +438,7 @@ BUILD_OS="ubuntu-22.04"
417
438
RELEASE_BASE_IMAGE=" ubuntu:22.04" # Matches vcpkg base image (does not need to be an exact match)
418
439
TAG_BUILD=0
419
440
ARCH=" "
441
+ NAME_TAG=" "
420
442
421
443
# Parse command line arguments
422
444
while [[ $# -gt 0 ]]
@@ -464,6 +486,11 @@ case $key in
464
486
shift # past argument
465
487
shift # past value
466
488
;;
489
+ -n|--name-tag)
490
+ NAME_TAG=" $2 "
491
+ shift # past argument
492
+ shift # past value
493
+ ;;
467
494
-h|--help)
468
495
usage
469
496
exit 0
0 commit comments