Merge branch '28-fix-automagic-job-docker' into 'development'
fix(docker_publish): job only run on dockerfile exists See merge request nofusscomputing/projects/gitlab-ci!32
This commit is contained in:
@ -97,10 +97,19 @@
|
||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||
when: never
|
||||
- if: $CI_COMMIT_TAG
|
||||
exists:
|
||||
- dockerfile
|
||||
- dockerfile.j2
|
||||
when: on_success
|
||||
- if: '$CI_COMMIT_BRANCH == "development" && $CI_PIPELINE_SOURCE == "push"'
|
||||
exists:
|
||||
- dockerfile
|
||||
- dockerfile.j2
|
||||
when: on_success
|
||||
- if: '$CI_COMMIT_BRANCH != "master" && $CI_PIPELINE_SOURCE == "push"'
|
||||
exists:
|
||||
- dockerfile
|
||||
- dockerfile.j2
|
||||
allow_failure: true
|
||||
when: manual
|
||||
- when: never
|
||||
|
Reference in New Issue
Block a user