mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-11 12:12:55 +00:00
ci: add automatic docker image building
This commit is contained in:
committed by
Rainer Killinger
parent
1dbf4515fe
commit
f2ca308a29
8
.gitlab/ci/getRegistryTag.sh
Executable file
8
.gitlab/ci/getRegistryTag.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# script returns semantical versioning string linke 2.0.0 (if $1 is v2.0.0) or $1
|
||||
if echo -n $1 | grep -Eq 'v[0-9]+\.[0-9]+\.[0-9]+'; then
|
||||
echo $(echo -n "$1" | cut -c 2-);
|
||||
else
|
||||
echo $1;
|
||||
fi
|
||||
Reference in New Issue
Block a user