Skip to content
Snippets Groups Projects
Commit 97bd5bf3 authored by lennart.kramer's avatar lennart.kramer
Browse files

allow tags for one stackmaxima version in build

parent 54a4c073
Branches
Tags
No related merge requests found
......@@ -3,11 +3,17 @@
#
# Run with two arguments:
# arg1: REGISTRY or dockerhub id to use. If given, teh built container is pushed there with tag -dev.
# arg2: goemaxima version number, used to tag the containers that are built.
# arg2: goemaxima version number, used to tag the containers that are built. If there is a dash, then
# with a tag like 2022071300-1.1.5, only the container for stackmaxima version 2022071300 would
# be built and tagged with 2022071300-1.1.5 and 2022071300-latest
REGISTRY=$1
grep -v '^#' versions | cut -f1 | \
while read -r ver; do
goemaxima_version="$2"
# note that cut by default outputs the whole line if there is no delimiter
goemaxima_version="$(echo "$2" | cut -f2 -d-)"
stack_versions="$(echo "$2" | cut -f1 -d- -s)"
if [ -z "$stack_versions" ]; then
stack_versions="$(grep -v '^#' versions | cut -f1)"
fi
for ver in $stack_versions; do
/bin/sh buildimage.sh "$ver" "${REGISTRY}" "$goemaxima_version" || exit 1
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment