UNCLASSIFIED - NO CUI

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

Merge branch 'ci/only' into 'master'

only run cluster tests when chart contents have changed

See merge request platform-one/big-bang/bigbang!210
parents 033af4ff 9166a9a4
No related branches found
No related tags found
1 merge request!210only run cluster tests when chart contents have changed
Pipeline #176908 passed
......@@ -85,6 +85,14 @@ pre vars:
# Smoke Tests
#
.chart_changes: &chart_changes
changes:
- chart/**/*
- .gitlab-ci.yml
- .gitlab-ci/jobs/**/*
- scripts/**/*
- tests/**/*
.deploy_bigbang: &deploy_bigbang
- find ./scripts/deploy -type f -name '*.sh' | sort | xargs -r -I {} sh -c 'echo {} && sh {}'
......@@ -97,6 +105,8 @@ clean install:
- .k3s-ci
variables:
CLUSTER_NAME: "clean-${CI_COMMIT_SHORT_SHA}"
rules:
- *chart_changes
script:
- *deploy_bigbang
- *test_bigbang
......@@ -120,6 +130,7 @@ upgrade:
when: never
# run pipeline on merge request events
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
<<: *chart_changes
variables:
CLUSTER_NAME: "upgrade-${CI_COMMIT_SHORT_SHA}"
script:
......@@ -153,6 +164,9 @@ upgrade:
rules:
# Run on scheduled jobs
- if: '$CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "master"'
# skip job when branch name starts with "hotfix" or "patch"
- if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^(hotfix|patch)/'
when: never
# Abstract for jobs responsible for cleaning up infrastructure
.infra cleanup:
......
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