fix(docker): job only run on dockerfile exists

!31 fixes #28
This commit is contained in:
2023-05-28 10:44:23 +09:30
parent 1c4258d645
commit 502f12c216

View File

@ -99,10 +99,19 @@ variables:
- 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
when: always
- when: never