Skip to content
Snippets Groups Projects
Commit 5e658f00 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

chore: use workflow rules

parent 841323cc
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,14 @@
# program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
# Floor, Boston, MA 02110-1301, USA.
# =========================================================================================
# default workflow rules
workflow:
rules:
# exclude merge requests
- if: $CI_MERGE_REQUEST_ID
when: never
- when: always
variables:
# variabilized tracking image
TBC_TRACKING_IMAGE: "$CI_REGISTRY/to-be-continuous/tools/tracking:master"
......@@ -645,9 +653,6 @@ os-review:
on_stop: os-cleanup-review
resource_group: review/$CI_COMMIT_REF_NAME
rules:
# exclude merge requests
- if: $CI_MERGE_REQUEST_ID
when: never
# exclude tags
- if: $CI_COMMIT_TAG
when: never
......@@ -671,9 +676,6 @@ os-cleanup-review:
action: stop
resource_group: review/$CI_COMMIT_REF_NAME
rules:
# exclude merge requests
- if: $CI_MERGE_REQUEST_ID
when: never
# exclude tags
- if: $CI_COMMIT_TAG
when: never
......@@ -699,9 +701,6 @@ os-cleanup-all-review:
script:
- delete_all review "${OS_REVIEW_APP_NAME:-${OS_BASE_APP_NAME}-review-.*}"
rules:
# exclude merge requests
- if: $CI_MERGE_REQUEST_ID
when: never
# exclude tags
- if: $CI_COMMIT_TAG
when: never
......@@ -730,9 +729,6 @@ os-integration:
url: "${OS_INTEG_ENVIRONMENT_URL}"
resource_group: integration
rules:
# exclude merge requests
- if: $CI_MERGE_REQUEST_ID
when: never
# only on integration branch(es), with $OS_INTEG_PROJECT set
- if: '$OS_INTEG_PROJECT && $CI_COMMIT_REF_NAME =~ $INTEG_REF'
......@@ -755,9 +751,6 @@ os-staging:
url: "${OS_STAGING_ENVIRONMENT_URL}"
resource_group: staging
rules:
# exclude merge requests
- if: $CI_MERGE_REQUEST_ID
when: never
# only on production branch(es), with $OS_STAGING_PROJECT set
- if: '$OS_STAGING_PROJECT && $CI_COMMIT_REF_NAME =~ $PROD_REF'
......@@ -777,9 +770,6 @@ os-production:
url: "${OS_PROD_ENVIRONMENT_URL}"
resource_group: production
rules:
# exclude merge requests
- if: $CI_MERGE_REQUEST_ID
when: never
# exclude non-production branches
- if: '$CI_COMMIT_REF_NAME !~ $PROD_REF'
when: never
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment