Commit d74dec7d authored by mohoff's avatar mohoff

fix: replace .except-ci-release with .only-on-push and .only-on-push-and-master

parent b6c199f3
Pipeline #22236 passed with stages
in 18 seconds
......@@ -4,6 +4,7 @@ build_image:
variables:
DOCKER_DRIVER: overlay2
extends:
- .only-merge-requests-and-master
- .except-ci-release
- .set-env-and-tag
- .skip-artifacts
......@@ -20,6 +21,7 @@ cloud_build:
image: google/cloud-sdk
stage: build
extends:
- .only-merge-requests-and-master
- .except-ci-release
- .set-env-and-tag
- .skip-artifacts
......
build_npm_package:
stage: build
extends:
- .only-merge-requests-and-master
- .except-ci-release
- .cache-pull-only
- .skip-artifacts
......
flow_coverage:
stage: test
extends:
- .only-merge-requests-and-master
- .except-ci-release
- .cache-pull-only
- .skip-artifacts
......
flow:
stage: test
extends:
- .only-merge-requests-and-master
- .except-ci-release
- .cache-pull-only
- .skip-artifacts
......
lint:
stage: test
extends:
- .only-merge-requests-and-master
- .except-ci-release
- .cache-pull-only
- .skip-artifacts
......
......@@ -33,8 +33,7 @@ production:
end
| { "ingresses": . }'
JQ_FIRST_INGRESS: '.ingresses[0] | (.host + .path)'
extends:
- .use-gcloud
extends: .use-gcloud
script:
- |
cat << EOF > main.tf
......
......@@ -17,6 +17,8 @@ review:
- .except-ci-release
- .use-gcloud
- .skip-artifacts
only:
- merge_requests
script:
- jq "${JQ_TRANSFORMATION}" brickblock.json > terraform.tfvars.json
- export FIRST_INGRESS=$(jq "${JQ_FIRST_INGRESS}" terraform.tfvars.json)
......@@ -78,7 +80,6 @@ stop_review:
| { "ingresses": . }'
JQ_FIRST_INGRESS: '.ingresses[0] | (.host + .path)'
extends:
- .except-ci-release
- .use-gcloud
- .skip-artifacts
script:
......
setup:
stage: setup
extends:
- .only-merge-requests-and-master
- .except-ci-release
- .cache
- .skip-artifacts
......
......@@ -38,12 +38,13 @@ variables:
- export NAMESPACE_SLUG=$(echo "$CI_PROJECT_NAMESPACE" | sed -r 's/[^a-zA-Z0-9]+/-/g')
- gcloud container clusters get-credentials ${GOOGLE_PROJECT}-${VARIANT}-cluster --zone ${ZONE} --project $GOOGLE_PROJECT
# .except-ci-release is included in jobs that are triggered throughout the lifecycle of merge requests. This includes pipelines on push and merge.
.only-merge-requests-and-master:
only:
- merge_requests
- master
.except-ci-release:
except:
refs:
- schedules
- tags
variables:
- $CI_COMMIT_MESSAGE =~ /\[ci-release\]/
......
......@@ -13,9 +13,10 @@ staging:
| { "ingresses": . }'
JQ_FIRST_INGRESS: '.ingresses[0] | (.host + .path)'
extends:
- .except-ci-release
- .use-gcloud
- .skip-artifacts
only:
- master
script:
- jq "${JQ_TRANSFORMATION}" brickblock.json > terraform.tfvars.json
- export FIRST_INGRESS=$(jq "${JQ_FIRST_INGRESS}" terraform.tfvars.json)
......@@ -58,5 +59,3 @@ staging:
environment:
name: staging
url: https://${FIRST_INGRESS}
only:
- master
test:
stage: test
extends:
- .only-merge-requests-and-master
- .except-ci-release
- .cache-pull-only
- .skip-artifacts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment