Skip to content
Snippets Groups Projects
Verified Commit aaa3638f authored by Frank Sauerburger's avatar Frank Sauerburger
Browse files

Move rules:if outside of component

parent b75ba57c
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,11 @@ stages:
include:
- component: gitlab.sauerburger.com/sauerburger-it/devops/kaniko-build@0.1.0
rules:
- if: $CI_COMMIT_TAG
- component: gitlab.sauerburger.com/sauerburger-it/devops/kaniko-build@0.1.0
rules:
- if: $CI_COMMIT_TAG
inputs:
name: second-image # Overwrite image name to
\ No newline at end of file
name: second-image # Overwrite image name to allow multiple jobs
\ No newline at end of file
......@@ -29,8 +29,6 @@ $[[ inputs.name ]]:
image:
name: gcr.io/kaniko-project/executor:$[[ inputs.kaniko_tag ]]
entrypoint: [""]
rules:
- if: $CI_COMMIT_TAG
script:
- echo "{\"auths\":{\"$[[ inputs.registry ]]\":{\"auth\":\"$(printf "%s:%s" "$[[ inputs.registry_user ]]" "$[[ inputs.registry_password ]]" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor
......
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