2020-04-17 06:24:27 +00:00
|
|
|
---
|
|
|
|
version: 2.1
|
|
|
|
orbs:
|
2023-04-01 07:05:18 +00:00
|
|
|
prometheus: prometheus/prometheus@0.17.1
|
2020-04-17 06:24:27 +00:00
|
|
|
executors:
|
|
|
|
# This must match .promu.yml.
|
|
|
|
golang:
|
|
|
|
docker:
|
2024-07-01 07:06:01 +00:00
|
|
|
- image: cimg/go:1.22
|
2020-04-17 06:24:27 +00:00
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
executor: golang
|
|
|
|
steps:
|
2022-01-16 00:02:29 +00:00
|
|
|
- prometheus/setup_environment
|
|
|
|
- run: make
|
|
|
|
- prometheus/store_artifact:
|
|
|
|
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:
|
2022-01-16 00:02:29 +00:00
|
|
|
- test:
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
|
|
|
- prometheus/build:
|
|
|
|
name: build
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
|
|
|
- prometheus/publish_master:
|
|
|
|
context: org-context
|
|
|
|
docker_hub_organization: prometheuscommunity
|
|
|
|
quay_io_organization: prometheuscommunity
|
|
|
|
requires:
|
|
|
|
- test
|
|
|
|
- build
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only: master
|
|
|
|
- prometheus/publish_release:
|
|
|
|
context: org-context
|
|
|
|
docker_hub_organization: prometheuscommunity
|
|
|
|
quay_io_organization: prometheuscommunity
|
|
|
|
requires:
|
|
|
|
- test
|
|
|
|
- build
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /^v.*/
|
|
|
|
branches:
|
|
|
|
ignore: /.*/
|