diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0547fe0e9b8371845c64dec2e0c450c052635cb1..e316f1593621eef4582e536367b4da1689caa357 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,10 @@ stages: build-and-push-job: stage: build-and-push + except: + changes: + - "**/*.yaml" + - "README.md" script: - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:${CI_COMMIT_SHA:0:8} --destination $CI_REGISTRY_IMAGE:latest \ No newline at end of file