mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-19 22:45:40 +00:00
CI: trigger simnet master and wait for status (#7899)
* CI: trigger simnet master and wait for status * chore: remove leftovers from chaosnet; remove flaming-fir deployment
This commit is contained in:
+25
-52
@@ -28,6 +28,11 @@ stages:
|
||||
- deploy
|
||||
- flaming-fir
|
||||
|
||||
workflow:
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
- if: $CI_COMMIT_BRANCH
|
||||
|
||||
variables: &default-vars
|
||||
GIT_STRATEGY: fetch
|
||||
GIT_DEPTH: 100
|
||||
@@ -70,11 +75,6 @@ default:
|
||||
tags:
|
||||
- linux-docker
|
||||
|
||||
workflow:
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
- if: $CI_COMMIT_BRANCH
|
||||
|
||||
.test-refs: &test-refs
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == "web"
|
||||
@@ -158,7 +158,7 @@ test-prometheus-alerting-rules:
|
||||
- .gitlab-ci.yml
|
||||
- .maintain/monitoring/**/*
|
||||
script:
|
||||
- echo "promtool check rules .maintain/monitoring/alerting-rules/alerting-rules.yaml"
|
||||
- promtool check rules .maintain/monitoring/alerting-rules/alerting-rules.yaml
|
||||
- cat .maintain/monitoring/alerting-rules/alerting-rules.yaml | promtool test rules .maintain/monitoring/alerting-rules/alerting-rule-tests.yaml
|
||||
|
||||
#### stage: test
|
||||
@@ -497,13 +497,13 @@ build-rust-doc:
|
||||
DOCKERFILE: $PRODUCT.Dockerfile
|
||||
IMAGE_NAME: docker.io/parity/$PRODUCT
|
||||
before_script:
|
||||
- test "$Docker_Hub_User_Parity" -a "$Docker_Hub_Pass_Parity" ||
|
||||
( echo "no docker credentials provided"; exit 1 )
|
||||
script:
|
||||
- cd ./artifacts/$PRODUCT/
|
||||
- VERSION="$(cat ./VERSION)"
|
||||
- echo "${PRODUCT} version = ${VERSION}"
|
||||
- test -z "${VERSION}" && exit 1
|
||||
script:
|
||||
- test "$Docker_Hub_User_Parity" -a "$Docker_Hub_Pass_Parity" ||
|
||||
( echo "no docker credentials provided"; exit 1 )
|
||||
- buildah bud
|
||||
--format=docker
|
||||
--build-arg VCS_REF="${CI_COMMIT_SHA}"
|
||||
@@ -516,6 +516,7 @@ build-rust-doc:
|
||||
- buildah info
|
||||
- buildah push --format=v2s2 "$IMAGE_NAME:$VERSION"
|
||||
- buildah push --format=v2s2 "$IMAGE_NAME:latest"
|
||||
- buildah logout "$IMAGE_NAME"
|
||||
|
||||
publish-docker-substrate:
|
||||
stage: publish
|
||||
@@ -529,7 +530,6 @@ publish-docker-substrate:
|
||||
<<: *docker-build-vars
|
||||
PRODUCT: substrate
|
||||
after_script:
|
||||
- buildah logout "$IMAGE_NAME"
|
||||
# only VERSION information is needed for the deployment
|
||||
- find ./artifacts/ -depth -not -name VERSION -type f -delete
|
||||
|
||||
@@ -542,8 +542,6 @@ publish-docker-subkey:
|
||||
variables:
|
||||
<<: *docker-build-vars
|
||||
PRODUCT: subkey
|
||||
after_script:
|
||||
- buildah logout "$IMAGE_NAME"
|
||||
|
||||
publish-s3-release:
|
||||
stage: publish
|
||||
@@ -614,6 +612,8 @@ publish-to-crates-io:
|
||||
- cargo unleash em-dragons --no-check --owner github:paritytech:core-devs ${CARGO_UNLEASH_PKG_DEF}
|
||||
allow_failure: true
|
||||
|
||||
#### stage: deploy
|
||||
|
||||
deploy-prometheus-alerting-rules:
|
||||
stage: deploy
|
||||
needs:
|
||||
@@ -640,52 +640,25 @@ deploy-prometheus-alerting-rules:
|
||||
- .gitlab-ci.yml
|
||||
- .maintain/monitoring/**/*
|
||||
|
||||
.validator-deploy: &validator-deploy
|
||||
stage: flaming-fir
|
||||
trigger-simnet:
|
||||
stage: deploy
|
||||
rules:
|
||||
# .build-refs, but manual
|
||||
- if: $CI_COMMIT_REF_NAME == "master"
|
||||
when: manual
|
||||
- if: $CI_PIPELINE_SOURCE == "web"
|
||||
when: manual
|
||||
- if: $CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
|
||||
when: manual
|
||||
# this job runs only on nightly pipeline with the mentioned variable, against `master` branch
|
||||
- if: $CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE == "schedule" && $PIPELINE == "nightly"
|
||||
needs:
|
||||
# script will fail if there is no artifacts/substrate/VERSION
|
||||
- job: publish-docker-substrate
|
||||
artifacts: true
|
||||
image: parity/azure-ansible:v1
|
||||
allow_failure: true
|
||||
interruptible: true
|
||||
tags:
|
||||
- linux-docker
|
||||
artifacts: false
|
||||
trigger:
|
||||
project: parity/simnet
|
||||
branch: master
|
||||
strategy: depend
|
||||
|
||||
validator 1 4:
|
||||
<<: *validator-deploy
|
||||
script:
|
||||
- ./.maintain/flamingfir-deploy.sh flamingfir-validator1
|
||||
|
||||
validator 2 4:
|
||||
<<: *validator-deploy
|
||||
script:
|
||||
- ./.maintain/flamingfir-deploy.sh flamingfir-validator2
|
||||
|
||||
validator 3 4:
|
||||
<<: *validator-deploy
|
||||
script:
|
||||
- ./.maintain/flamingfir-deploy.sh flamingfir-validator3
|
||||
|
||||
validator 4 4:
|
||||
<<: *validator-deploy
|
||||
script:
|
||||
- ./.maintain/flamingfir-deploy.sh flamingfir-validator4
|
||||
|
||||
#### stage: .post
|
||||
#### stage: .post
|
||||
|
||||
check-labels:
|
||||
stage: .post
|
||||
image: paritytech/tools:latest
|
||||
<<: *kubernetes-build
|
||||
stage: .post
|
||||
image: paritytech/tools:latest
|
||||
<<: *kubernetes-build
|
||||
rules:
|
||||
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
|
||||
script:
|
||||
|
||||
Reference in New Issue
Block a user