workflow: rules: # MR pipeline - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' when: always # Push pipeline hanya untuk env branch - if: '$CI_COMMIT_BRANCH == "development"' when: always - if: '$CI_COMMIT_BRANCH == "staging"' when: always - if: '$CI_COMMIT_BRANCH == "production"' when: always # Selain itu jangan buat pipeline - when: never include: # khusus MR (notif) - local: "ci/merge_request.yml" rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' # khusus push ke branch env - local: "ci/development.yml" rules: - if: '$CI_COMMIT_BRANCH == "development"' - local: "ci/staging.yml" rules: - if: '$CI_COMMIT_BRANCH == "staging"' - local: "ci/production.yml" rules: - if: '$CI_COMMIT_BRANCH == "production"'