UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 8c1c10c4 authored by joshwolf's avatar joshwolf
Browse files

Merge branch 'ci/release' into 'master'

ci: only run on infra jobs on scheduled triggers or release branches

See merge request platform-one/big-bang/bigbang!212
parents c3653fb4 96df8233
No related branches found
No related tags found
1 merge request!212ci: only run on infra jobs on scheduled triggers or release branches
Pipeline #155884 passed with warnings
...@@ -181,31 +181,31 @@ upgrade: ...@@ -181,31 +181,31 @@ upgrade:
.infra fork: .infra fork:
stage: network up stage: network up
rules: rules:
# skip job when branch name starts with "hotfix" or "patch" # run infrastructure pipelines only on merges into release branches, and run regardless of failure
- if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^(hotfix|patch)/' - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^release*/'
when: never
# run infrastructure pipelines only on merges into master, and run regardless of failure
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
allow_failure: false allow_failure: false
when: manual when: manual
# Run on scheduled jobs
- if: '$CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "master"'
allow_failure: false
# Abstract for jobs responsible for creating infrastructure # Abstract for jobs responsible for creating infrastructure
.infra create: .infra create:
rules: rules:
# skip job when branch name starts with "hotfix" or "patch" # run infrastructure pipelines only on merges into release branches
- if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^(hotfix|patch)/' - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^release*/'
when: never # Run on scheduled jobs
# run infrastructure pipelines only on merges into master - if: '$CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "master"'
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
# Abstract for jobs responsible for cleaning up infrastructure # Abstract for jobs responsible for cleaning up infrastructure
.infra cleanup: .infra cleanup:
rules: rules:
# skip job when branch name starts with "hotfix" or "patch" # run infrastructure pipelines only on merges into release branches, and run regardless of failure
- if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^(hotfix|patch)/' - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^release*/'
when: never allow_failure: true
# run infrastructure pipelines only on merges into master, and run regardless of failure when: always
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"' # Run on scheduled jobs
- if: '$CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "master"'
allow_failure: true allow_failure: true
when: always when: always
...@@ -346,9 +346,6 @@ package: ...@@ -346,9 +346,6 @@ package:
rules: rules:
# run job for manual tag events # run job for manual tag events
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
# when: never
# # run job on commits to default branch
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
before_script: before_script:
# Set up auth # Set up auth
- mkdir -p /root/.docker - mkdir -p /root/.docker
...@@ -381,9 +378,6 @@ release: ...@@ -381,9 +378,6 @@ release:
rules: rules:
# run job for manual tag events # run job for manual tag events
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
# when: never
# # run job on commits to default branch
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
variables: variables:
RELEASE_ENDPOINT: https://${RELEASE_BUCKET}.s3-${AWS_DEFAULT_REGION}.amazonaws.com/umbrella/${CI_COMMIT_TAG} RELEASE_ENDPOINT: https://${RELEASE_BUCKET}.s3-${AWS_DEFAULT_REGION}.amazonaws.com/umbrella/${CI_COMMIT_TAG}
script: script:
......
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