Debian Codegraph @

.goreleaser.yaml

raw symbols SCIP
1 project_name: prometheus-varnish-exporter
2 version: 2
3
4 before:
5 hooks:
6 - go mod tidy
7 - go test -v ./...
8
9 builds:
10 - binary: prometheus-varnish-exporter
11 env:
12 - CGO_ENABLED=0
13 goarch:
14 - amd64
15 - arm64
16 goos:
17 - linux
18 - windows
19 - darwin
20
21 archives:
22 - formats: [tar.gz]
23 # this name template makes the OS and Arch compatible with the results of `uname`.
24 name_template: >-
25 {{ .ProjectName }}_
26 {{- title .Os }}_
27 {{- if eq .Arch "amd64" }}x86_64
28 {{- else if eq .Arch "386" }}i386
29 {{- else }}{{ .Arch }}{{ end }}
30 {{- if .Arm }}v{{ .Arm }}{{ end }}
31 # use zip for windows archives
32 format_overrides:
33 - goos: windows
34 formats: [zip]
35
36 dockers_v2:
37 - id: varnish-9.0.0
38 dockerfile: build/Dockerfile
39 extra_files:
40 - build/entrypoint.sh
41 images:
42 - ghcr.io/otto-de/prometheus-varnish-exporter
43 tags:
44 - "{{.Version}}-varnish-9.0.0"
45 - latest
46 build_args:
47 VARNISH_VERSION: 9.0.0
48 platforms:
49 - linux/amd64
50 - linux/arm64
51 labels:
52 "org.opencontainers.image.description": "prometheus compatible metrics exporter for varnish 9.0.0"
53 "org.opencontainers.image.created": "{{.Date}}"
54 "org.opencontainers.image.name": "{{.ProjectName}}"
55 "org.opencontainers.image.revision": "{{.FullCommit}}"
56 "org.opencontainers.image.version": "{{.Version}}"
57 "org.opencontainers.image.source": "{{.GitURL}}"
58 - id: varnish-8.0.0
59 dockerfile: build/Dockerfile
60 extra_files:
61 - build/entrypoint.sh
62 images:
63 - ghcr.io/otto-de/prometheus-varnish-exporter
64 tags:
65 - "{{.Version}}-varnish-8.0.0"
66 build_args:
67 VARNISH_VERSION: 8.0.0
68 platforms:
69 - linux/amd64
70 - linux/arm64
71 labels:
72 "org.opencontainers.image.description": "prometheus compatible metrics exporter for varnish 8.0.0"
73 "org.opencontainers.image.created": "{{.Date}}"
74 "org.opencontainers.image.name": "{{.ProjectName}}"
75 "org.opencontainers.image.revision": "{{.FullCommit}}"
76 "org.opencontainers.image.version": "{{.Version}}"
77 "org.opencontainers.image.source": "{{.GitURL}}"
78 - id: varnish-7.7.3
79 dockerfile: build/Dockerfile
80 extra_files:
81 - build/entrypoint.sh
82 images:
83 - ghcr.io/otto-de/prometheus-varnish-exporter
84 tags:
85 - "{{.Version}}-varnish-7.7.3"
86 build_args:
87 VARNISH_VERSION: 7.7.3
88 platforms:
89 - linux/amd64
90 - linux/arm64
91 labels:
92 "org.opencontainers.image.description": "prometheus compatible metrics exporter for varnish 7.7.3"
93 "org.opencontainers.image.created": "{{.Date}}"
94 "org.opencontainers.image.name": "{{.ProjectName}}"
95 "org.opencontainers.image.revision": "{{.FullCommit}}"
96 "org.opencontainers.image.version": "{{.Version}}"
97 "org.opencontainers.image.source": "{{.GitURL}}"
98 - id: varnish-6.0.16
99 dockerfile: build/Dockerfile
100 extra_files:
101 - build/entrypoint.sh
102 images:
103 - ghcr.io/otto-de/prometheus-varnish-exporter
104 tags:
105 - "{{.Version}}-varnish-6.0.16"
106 build_args:
107 VARNISH_VERSION: 6.0.16
108 platforms:
109 - linux/amd64
110 - linux/arm64
111 labels:
112 "org.opencontainers.image.description": "prometheus compatible metrics exporter for varnish 6.0.16"
113 "org.opencontainers.image.created": "{{.Date}}"
114 "org.opencontainers.image.name": "{{.ProjectName}}"
115 "org.opencontainers.image.revision": "{{.FullCommit}}"
116 "org.opencontainers.image.version": "{{.Version}}"
117 "org.opencontainers.image.source": "{{.GitURL}}"
118
119 changelog:
120 sort: asc
121 filters:
122 exclude:
123 - "^docs"
124 - "^test"
125
126 release:
127 footer: >-
128
129 ---
130
131 Released by [GoReleaser](https://github.com/goreleaser/goreleaser).