Skip to content
Snippets Groups Projects
Unverified Commit ffe822fd authored by Roman Azarenko's avatar Roman Azarenko
Browse files

CI: simplify conditional for container image build, use ref name for image tag

parent fb9da7d8
No related branches found
No related tags found
1 merge request!17CI for publish image in our registry for tags and devel-branch
This commit is part of merge request !17. Comments created here will be created in the context of that merge request.
......@@ -43,16 +43,10 @@ update-docker-image:
--cache-repo "${CI_REGISTRY_IMAGE}/code-analysis/cache" \
--dockerfile "${CI_PROJECT_DIR}/docker/code-analysis/Dockerfile" \
--destination "${CI_REGISTRY_IMAGE}/code-analysis:${CI_COMMIT_SHA}" \
--destination "${CI_REGISTRY_IMAGE}/code-analysis:${CI_COMMIT_REF_SLUG}" \
--destination "${CI_REGISTRY_IMAGE}/code-analysis:${CI_COMMIT_REF_NAME}" \
${IS_DEFAULT_BRANCH:+--destination ${CI_REGISTRY_IMAGE}/code-analysis:latest}
rules:
- if: $CI_PIPELINE_SOURCE == "web" && $REBUILD_DOCKER == "1"
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
changes:
- Dockerfile
- docker/**
- iop
- if: '$CI_COMMIT_TAG'
- if: '$CI_COMMIT_REF_PROTECTED == "true"'
interruptible: true
pages:
......
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