2018-11-26 16:02:28 +00:00
|
|
|
version: 2.1
|
2019-07-02 12:09:42 +00:00
|
|
|
orbs:
|
2023-03-08 18:21:13 +00:00
|
|
|
prometheus: prometheus/prometheus@0.17.1
|
2018-11-29 10:10:52 +00:00
|
|
|
executors:
|
2020-05-01 14:35:40 +00:00
|
|
|
# Whenever the Go version is updated here, .promu.yml should also be updated.
|
2018-11-29 10:10:52 +00:00
|
|
|
golang:
|
|
|
|
docker:
|
2022-11-29 14:33:57 +00:00
|
|
|
- image: cimg/go:1.19
|
2018-06-29 18:58:44 +00:00
|
|
|
jobs:
|
|
|
|
test:
|
2018-11-29 10:10:52 +00:00
|
|
|
executor: golang
|
2018-06-29 18:58:44 +00:00
|
|
|
steps:
|
2021-03-31 00:01:37 +00:00
|
|
|
- prometheus/setup_environment
|
|
|
|
- run: make
|
|
|
|
- run: git diff --exit-code
|
|
|
|
- prometheus/store_artifact:
|
|
|
|
file: statsd_exporter
|
2018-06-29 18:58:44 +00:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
statsd_exporter:
|
|
|
|
jobs:
|
2021-03-31 00:01:37 +00:00
|
|
|
- test:
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
|
|
|
- prometheus/build:
|
|
|
|
name: build
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
|
|
|
- prometheus/publish_master:
|
|
|
|
context: org-context
|
|
|
|
requires:
|
|
|
|
- test
|
|
|
|
- build
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only: master
|
|
|
|
- prometheus/publish_release:
|
|
|
|
context: org-context
|
|
|
|
requires:
|
|
|
|
- test
|
|
|
|
- build
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
|
|
|
|
branches:
|
|
|
|
ignore: /.*/
|