Loading .gitlab-ci.yml +14 −26 Original line number Diff line number Diff line include: - local: ".gitlab/ci/wiki.yml" rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' when: never - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" - changes: - doc/**/* - local: ".gitlab/ci/deploy.yml" build wiki: stage: build trigger: include: .gitlab/ci/wiki.yml allow_failure: true rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' when: never - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" - changes: # exclude documentation changes from deploy - doc/**/* when: never - when: always - if: $CI_PIPELINE_SOURCE != "merge_request_event" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # dummy job, gitlab gets mad when no jobs exist (when the above are never imported) dummy: stage: build interruptible: true script: - echo "dummy" # rules: # - when: never deploy: stage: deploy trigger: include: .gitlab/ci/deploy.yml allow_failure: true rules: - if: $CI_PIPELINE_SOURCE != "merge_request_event" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH .gitlab/ci/deploy.yml +0 −8 Original line number Diff line number Diff line Loading @@ -6,10 +6,6 @@ publish: stage: build tags: - red rules: - changes: - "**/*.md" when: manual interruptible: true before_script: - echo $PAT | docker login $REGISTRY -u $GITLAB_USER_LOGIN --password-stdin Loading @@ -28,10 +24,6 @@ deploy: stage: deploy tags: - red rules: - changes: - "**/*.md" when: manual interruptible: true script: - cd $WORK_DIR Loading Loading
.gitlab-ci.yml +14 −26 Original line number Diff line number Diff line include: - local: ".gitlab/ci/wiki.yml" rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' when: never - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" - changes: - doc/**/* - local: ".gitlab/ci/deploy.yml" build wiki: stage: build trigger: include: .gitlab/ci/wiki.yml allow_failure: true rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' when: never - if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH" - changes: # exclude documentation changes from deploy - doc/**/* when: never - when: always - if: $CI_PIPELINE_SOURCE != "merge_request_event" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # dummy job, gitlab gets mad when no jobs exist (when the above are never imported) dummy: stage: build interruptible: true script: - echo "dummy" # rules: # - when: never deploy: stage: deploy trigger: include: .gitlab/ci/deploy.yml allow_failure: true rules: - if: $CI_PIPELINE_SOURCE != "merge_request_event" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
.gitlab/ci/deploy.yml +0 −8 Original line number Diff line number Diff line Loading @@ -6,10 +6,6 @@ publish: stage: build tags: - red rules: - changes: - "**/*.md" when: manual interruptible: true before_script: - echo $PAT | docker login $REGISTRY -u $GITLAB_USER_LOGIN --password-stdin Loading @@ -28,10 +24,6 @@ deploy: stage: deploy tags: - red rules: - changes: - "**/*.md" when: manual interruptible: true script: - cd $WORK_DIR Loading