mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 05:21:57 +00:00
36 lines
842 B
YAML
36 lines
842 B
YAML
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"'
|