Skip to content
Snippets Groups Projects
Commit b1ccf69a authored by Jan Hartig's avatar Jan Hartig
Browse files

Merge branch 'develop' into 'main'

Fix docker image tagging

See merge request !14
parents 11fe1174 889389c1
No related branches found
No related tags found
1 merge request!14Fix docker image tagging
Pipeline #11551 passed
......@@ -21,7 +21,7 @@ docker-build:
tag=""
echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = 'latest'"
else
tag=":$CI_COMMIT_REF_SLUG"
tag=":$CI_COMMIT_REF_NAME"
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
fi
- docker build --pull -t "$CI_REGISTRY_IMAGE${tag}" .
......@@ -31,4 +31,6 @@ docker-build:
- if: $CI_COMMIT_BRANCH
exists:
- Dockerfile
- if: '$CI_COMMIT_TAG =~ /^\d+\.\d+$/'
\ No newline at end of file
- if: '$CI_COMMIT_TAG =~ /^\d+\.\d+$/'
exists:
- Dockerfile
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment