-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathconfig.yml
60 lines (57 loc) · 1.22 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
version: 2.1
orbs:
prometheus: prometheus/[email protected]
codecov: codecov/[email protected]
executors:
# Whenever the Go version is updated here, .promu.yml should
# also be updated.
golang:
docker:
- image: cimg/go:1.20.3
jobs:
test:
executor: golang
steps:
- prometheus/setup_environment
- run: make
- run: make coverage
- codecov/upload:
file: coverage.txt
- prometheus/store_artifact:
file: ssh_exporter
workflows:
version: 2
ssh_exporter:
jobs:
- test:
filters:
tags:
only: /.*/
- prometheus/build:
name: build
filters:
tags:
only: /.*/
- prometheus/publish_master:
context: org-context
docker_hub_organization: treydock
quay_io_organization: treydock
requires:
- test
- build
filters:
branches:
only: master
- prometheus/publish_release:
context: org-context
docker_hub_organization: treydock
quay_io_organization: treydock
requires:
- test
- build
filters:
tags:
only: /^v([0-9]).*/
branches:
ignore: /.*/