Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
.gitlab-ci.yml: Use promtool from paritytech/tools:latest image (#6425)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden authored Jun 19, 2020
1 parent 111b628 commit 18707b3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,8 @@ test-prometheus-alerting-rules:
image: paritytech/tools:latest
<<: *kubernetes-build
script:
- curl -L https://github.com/prometheus/prometheus/releases/download/v2.19.0/prometheus-2.19.0.linux-amd64.tar.gz --output prometheus.tar.gz
- tar -xzf prometheus.tar.gz
- ./prometheus-*/promtool check rules .maintain/monitoring/alerting-rules/alerting-rules.yaml
- cat .maintain/monitoring/alerting-rules/alerting-rules.yaml | ./prometheus-*/promtool test rules .maintain/monitoring/alerting-rules/alerting-rule-tests.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: build

Expand Down

0 comments on commit 18707b3

Please sign in to comment.