Files
openstapps/.gitlab/ci/pushAsLatestVersion.sh
Anselm Stordeur 16bbb7e9e3 feat: add backend
2021-04-27 13:01:14 +02:00

8 lines
214 B
Bash
Executable File

#!/usr/bin/env sh
# If this is a pipeline of a version tag, also push this version
# as latest to the registry alias $2:latest
if echo -n $1 | grep -Eq 'v[0-9]+\.[0-9]+\.[0-9]+'; then
docker push $2:latest;
fi