2018-06-29 18:58:44 +00:00
|
|
|
---
|
2018-11-26 16:02:28 +00:00
|
|
|
version: 2.1
|
2018-06-29 18:58:44 +00:00
|
|
|
|
2019-07-02 12:09:42 +00:00
|
|
|
orbs:
|
2020-05-26 06:41:35 +00:00
|
|
|
prometheus: prometheus/prometheus@0.5.0
|
2019-07-02 12:09:42 +00:00
|
|
|
|
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:
|
2020-05-01 14:35:40 +00:00
|
|
|
- image: circleci/golang:1.14
|
2018-11-29 10:10:52 +00:00
|
|
|
|
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:
|
2019-07-02 12:09:42 +00:00
|
|
|
- prometheus/setup_environment
|
2018-11-29 10:10:52 +00:00
|
|
|
- run: make
|
|
|
|
- run: git diff --exit-code
|
2019-07-02 12:09:42 +00:00
|
|
|
- prometheus/store_artifact:
|
|
|
|
file: statsd_exporter
|
2018-06-29 18:58:44 +00:00
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
statsd_exporter:
|
|
|
|
jobs:
|
|
|
|
- test:
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
2019-07-02 12:09:42 +00:00
|
|
|
- prometheus/build:
|
|
|
|
name: build
|
2018-06-29 18:58:44 +00:00
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
2019-07-02 12:09:42 +00:00
|
|
|
- prometheus/publish_master:
|
2019-05-29 16:00:06 +00:00
|
|
|
context: org-context
|
2018-06-29 18:58:44 +00:00
|
|
|
requires:
|
|
|
|
- test
|
|
|
|
- build
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only: master
|
2019-07-02 12:09:42 +00:00
|
|
|
- prometheus/publish_release:
|
2019-05-29 16:00:06 +00:00
|
|
|
context: org-context
|
2018-06-29 18:58:44 +00:00
|
|
|
requires:
|
|
|
|
- test
|
|
|
|
- build
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /^v[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)$/
|
|
|
|
branches:
|
|
|
|
ignore: /.*/
|