Skip to content
Snippets Groups Projects
Verified Commit 35b925b7 authored by Louis's avatar Louis :fire:
Browse files

Enable indev tag for trunk branch

parent 527c5d50
No related branches found
No related tags found
No related merge requests found
Pipeline #716 passed with stage
in 6 minutes and 48 seconds
......@@ -9,13 +9,13 @@ build:
- |
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
tag=""
echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = 'latest'"
echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = 'indev'"
else
tag=":$CI_COMMIT_REF_SLUG"
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
fi
- docker build --pull -f Dockerfile -t "$CI_REGISTRY_IMAGE${tag}" .
- docker push "$CI_REGISTRY_IMAGE${tag}"
rules:
if: $CI_COMMIT_TAG
when: always
\ No newline at end of file
only:
- tags
- trunk
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment