Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hsh-maxima
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
hsh-maxima
Commits
97bd5bf3
Commit
97bd5bf3
authored
2 years ago
by
lennart.kramer
Browse files
Options
Downloads
Patches
Plain Diff
allow tags for one stackmaxima version in build
parent
54a4c073
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
build.sh
+10
-4
10 additions, 4 deletions
build.sh
with
10 additions
and
4 deletions
build.sh
+
10
−
4
View file @
97bd5bf3
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment