2021-09-21 10:22:30 +00:00
|
|
|
---
|
|
|
|
version: 2.1
|
|
|
|
orbs:
|
2023-08-31 08:53:36 +00:00
|
|
|
prometheus: prometheus/prometheus@0.17.1
|
2021-09-21 10:22:30 +00:00
|
|
|
executors:
|
|
|
|
# Whenever the Go version is updated here, .promu.yml should
|
|
|
|
# also be updated.
|
|
|
|
golang:
|
|
|
|
docker:
|
2024-10-18 00:09:00 +00:00
|
|
|
- image: cimg/go:1.23
|
2021-09-21 10:22:30 +00:00
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
executor: golang
|
|
|
|
steps:
|
2021-12-10 00:01:58 +00:00
|
|
|
- prometheus/setup_environment
|
|
|
|
- run: make
|
|
|
|
- prometheus/store_artifact:
|
|
|
|
file: ipmi_exporter
|
2021-09-21 10:22:30 +00:00
|
|
|
codespell:
|
|
|
|
docker:
|
2021-12-10 00:01:58 +00:00
|
|
|
- image: circleci/python
|
2021-09-21 10:22:30 +00:00
|
|
|
steps:
|
2021-12-10 00:01:58 +00:00
|
|
|
- checkout
|
|
|
|
- run: sudo pip install codespell
|
|
|
|
- run: codespell --skip=".git,./vendor,ttar,go.mod,go.sum,*pem" -L uint,packages\',uptodate
|
2021-09-21 10:22:30 +00:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
ipmi_exporter:
|
|
|
|
jobs:
|
2021-12-10 00:01:58 +00:00
|
|
|
- test:
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
|
|
|
- prometheus/build:
|
|
|
|
name: build
|
|
|
|
filters:
|
|
|
|
tags:
|
|
|
|
only: /.*/
|
|
|
|
- codespell:
|
|
|
|
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: /.*/
|