Skip to content
Snippets Groups Projects

Add rules to pipelines

Merged Felix Ohms requested to merge 142-add-rules-to-pipelines into develop
Compare and
8 files
+ 88
13
Compare changes
  • Side-by-side
  • Inline
Files
8
@@ -21,7 +21,16 @@ build-testing-image:
variables:
TAG: develop
BUILDARGS: -race
- when: always
- !reference [.push_event, rules]
- !reference [.merge_request, rules]
before_script:
# replace all slashes in the tag with hyphen, because slashes are not allowed in tags
- TAG=${TAG//\//-}
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" >/kaniko/.docker/config.json
needs: []
build-testing-image:
script:
- /kaniko/executor
--cache=true
Loading