Skip to content

Commit

Permalink
Update common Prometheus files
Browse files Browse the repository at this point in the history
Signed-off-by: prombot <[email protected]>
  • Loading branch information
prombot committed Mar 31, 2021
1 parent 30dd54a commit 0316b1a
Showing 1 changed file with 31 additions and 37 deletions.
68 changes: 31 additions & 37 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,45 @@
---
version: 2.1

orbs:
prometheus: prometheus/[email protected]

prometheus: prometheus/[email protected]
executors:
# Whenever the Go version is updated here, .promu.yml should also be updated.
golang:
docker:
- image: circleci/golang:1.16

- image: circleci/golang:1.16
jobs:
test:
executor: golang

steps:
- prometheus/setup_environment
- run: make
- prometheus/store_artifact:
file: pushgateway

- prometheus/setup_environment
- run: make
- prometheus/store_artifact:
file: pushgateway
workflows:
version: 2
pushgateway:
jobs:
- test:
filters:
tags:
only: /.*/
- prometheus/build:
name: build
filters:
tags:
only: /.*/
- prometheus/publish_master:
requires:
- test
- build
filters:
branches:
only: master
- prometheus/publish_release:
requires:
- test
- build
filters:
tags:
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
branches:
ignore: /.*/
- test:
filters:
tags:
only: /.*/
- prometheus/build:
name: build
filters:
tags:
only: /.*/
- prometheus/publish_master:
requires:
- test
- build
filters:
branches:
only: master
- prometheus/publish_release:
requires:
- test
- build
filters:
tags:
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
branches:
ignore: /.*/

0 comments on commit 0316b1a

Please sign in to comment.