Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
aa9d2966
Commit
aa9d2966
authored
4 years ago
by
Denis_P
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
CI: test prometheus alerts moved to check; deploy depends on tests; chore (#7887)
parent
1922dab0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/.gitlab-ci.yml
+21
-15
21 additions, 15 deletions
substrate/.gitlab-ci.yml
with
21 additions
and
15 deletions
substrate/.gitlab-ci.yml
+
21
−
15
View file @
aa9d2966
...
...
@@ -52,8 +52,6 @@ default:
.kubernetes-build
:
&kubernetes-build
tags
:
-
kubernetes-parity-build
environment
:
name
:
parity-build
interruptible
:
true
.docker-env
:
&docker-env
...
...
@@ -129,7 +127,7 @@ check-signed-tag:
<<
:
*kubernetes-build
rules
:
-
if
:
$CI_COMMIT_REF_NAME =~ /^ci-release-.*$/
-
if
:
$CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+
\.[0-9]+.*$/
-
if
:
$CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+
.*$/
# i.e. v1.0, v2.1rc1
script
:
-
./.maintain/gitlab/check_signed.sh
...
...
@@ -150,6 +148,19 @@ test-dependency-rules:
script
:
-
.maintain/ensure-deps.sh
test-prometheus-alerting-rules
:
stage
:
check
image
:
paritytech/tools:latest
<<
:
*kubernetes-build
rules
:
-
if
:
$CI_COMMIT_BRANCH
changes
:
-
.gitlab-ci.yml
-
.maintain/monitoring/**/*
script
:
-
echo "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
cargo-audit
:
...
...
@@ -340,14 +351,6 @@ cargo-check-macos:
tags
:
-
osx
test-prometheus-alerting-rules
:
stage
:
test
image
:
paritytech/tools:latest
<<
:
*kubernetes-build
script
:
-
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: build
check-polkadot-companion-status
:
...
...
@@ -509,7 +512,7 @@ build-rust-doc:
--tag "$IMAGE_NAME:latest"
--file "$DOCKERFILE" .
-
echo "$Docker_Hub_Pass_Parity" |
buildah login --username "$Docker_Hub_User_Parity" --password-stdin docker.io
buildah login --username "$Docker_Hub_User_Parity" --password-stdin docker.io
-
buildah info
-
buildah push --format=v2s2 "$IMAGE_NAME:$VERSION"
-
buildah push --format=v2s2 "$IMAGE_NAME:latest"
...
...
@@ -595,7 +598,7 @@ publish-draft-release:
image
:
paritytech/tools:latest
rules
:
-
if
:
$CI_COMMIT_REF_NAME =~ /^ci-release-.*$/
-
if
:
$CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+
\.[0-9]+.*$/
-
if
:
$CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+
.*$/
# i.e. v1.0, v2.1rc1
script
:
-
./.maintain/gitlab/publish_draft_release.sh
allow_failure
:
true
...
...
@@ -605,14 +608,17 @@ publish-to-crates-io:
<<
:
*docker-env
rules
:
-
if
:
$CI_COMMIT_REF_NAME =~ /^ci-release-.*$/
-
if
:
$CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+
\.[0-9]+.*$/
-
if
:
$CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+
.*$/
# i.e. v1.0, v2.1rc1
script
:
-
cargo install cargo-unleash ${CARGO_UNLEASH_INSTALL_PARAMS}
-
cargo unleash em-dragons --no-check --owner github:paritytech:core-devs ${CARGO_UNLEASH_PKG_DEF}
allow_failure
:
true
deploy-
kubernete
s-alerting-rules
:
deploy-
prometheu
s-alerting-rules
:
stage
:
deploy
needs
:
-
job
:
test-prometheus-alerting-rules
artifacts
:
false
interruptible
:
true
retry
:
1
tags
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment