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:
.infra fork:
stage: network up
rules:
# skip job when branch name starts with "hotfix" or "patch"
- if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^(hotfix|patch)/'
when: never
# run infrastructure pipelines only on merges into master, and run regardless of failure
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
# run infrastructure pipelines only on merges into release branches, and run regardless of failure
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^release*/'
allow_failure: false
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
.infra create:
rules:
# skip job when branch name starts with "hotfix" or "patch"
- if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^(hotfix|patch)/'
when: never
# run infrastructure pipelines only on merges into master
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
# run infrastructure pipelines only on merges into release branches
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^release*/'
# Run on scheduled jobs
- if: '$CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "master"'
# Abstract for jobs responsible for cleaning up infrastructure
.infra cleanup:
rules:
# skip job when branch name starts with "hotfix" or "patch"
- if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^(hotfix|patch)/'
when: never
# run infrastructure pipelines only on merges into master, and run regardless of failure
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
# run infrastructure pipelines only on merges into release branches, and run regardless of failure
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME =~ /^release*/'
allow_failure: true
when: always
# Run on scheduled jobs
- if: '$CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "master"'
allow_failure: true
when: always
......@@ -346,9 +346,6 @@ package:
rules:
# run job for manual tag events
- if: $CI_COMMIT_TAG
# when: never
# # run job on commits to default branch
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
before_script:
# Set up auth
- mkdir -p /root/.docker
......@@ -381,9 +378,6 @@ release:
rules:
# run job for manual tag events
- if: $CI_COMMIT_TAG
# when: never
# # run job on commits to default branch
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
variables:
RELEASE_ENDPOINT: https://${RELEASE_BUCKET}.s3-${AWS_DEFAULT_REGION}.amazonaws.com/umbrella/${CI_COMMIT_TAG}
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