2020-04-17 06:24:27 +00:00
|
|
|
---
|
|
|
|
version: 2.1
|
|
|
|
|
|
|
|
orbs:
|
2021-03-25 15:37:57 +00:00
|
|
|
prometheus: prometheus/prometheus@0.11.0
|
2020-04-17 06:24:27 +00:00
|
|
|
|
|
|
|
executors:
|
|
|
|
# This must match .promu.yml.
|
|
|
|
golang:
|
|
|
|
docker:
|
2021-10-05 11:21:42 +00:00
|
|
|
- image: circleci/golang:1.17
|
2020-04-17 06:24:27 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
executor: golang
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- prometheus/setup_environment
|
|
|
|
- run: make
|
|
|
|
- prometheus/store_artifact:
|
2020-04-17 06:39:48 +00:00
|
|
|
file: json_exporter
|
2020-04-17 06:24:27 +00:00
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
2020-04-17 06:39:48 +00:00
|
|
|
json_exporter:
|
2020-04-17 06:24:27 +00:00
|
|
|
jobs:
|
|
|
|
- test:
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
|
|
|
- prometheus/build:
|
|
|
|
name: build
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
2020-07-27 08:08:41 +00:00
|
|
|
- prometheus/publish_master:
|
2020-04-17 06:24:27 +00:00
|
|
|
context: org-context
|
2020-07-27 08:08:41 +00:00
|
|
|
docker_hub_organization: prometheuscommunity
|
|
|
|
quay_io_organization: prometheuscommunity
|
2020-04-17 06:24:27 +00:00
|
|
|
requires:
|
|
|
|
- test
|
|
|
|
- build
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only: master
|
2020-07-27 08:08:41 +00:00
|
|
|
- prometheus/publish_release:
|
2020-04-17 06:24:27 +00:00
|
|
|
context: org-context
|
2020-07-27 08:08:41 +00:00
|
|
|
docker_hub_organization: prometheuscommunity
|
|
|
|
quay_io_organization: prometheuscommunity
|
2020-04-17 06:24:27 +00:00
|
|
|
requires:
|
|
|
|
- test
|
|
|
|
- build
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /^v.*/
|
|
|
|
branches:
|
|
|
|
ignore: /.*/
|