-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
56 lines (52 loc) · 1.57 KB
/
.goreleaser.yaml
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
version: 2
builds:
- id: sems_mitm_exporter
binary: sems_mitm_exporter
main: ./cmd/sems_mitm_exporter
ldflags:
- >
-s -w
-X "main.commit={{.Commit}}"
-X "main.date={{.Date}}"
-X "main.projectName={{.ProjectName}}"
-X "main.version=v{{.Version}}"
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
changelog:
use: github-native
dockers:
- ids:
- sems_mitm_exporter
image_templates:
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}/sems_mitm_exporter:v{{ .Version }}-amd64"
use: buildx
build_flag_templates:
- "--build-arg=BINARY=sems_mitm_exporter"
- "--platform=linux/amd64"
- ids:
- sems_mitm_exporter
image_templates:
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}/sems_mitm_exporter:v{{ .Version }}-arm64v8"
use: buildx
goarch: arm64
build_flag_templates:
- "--build-arg=BINARY=sems_mitm_exporter"
- "--platform=linux/arm64/v8"
docker_manifests:
- name_template: "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}/sems_mitm_exporter:v{{ .Version }}"
image_templates:
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}/sems_mitm_exporter:v{{ .Version }}-amd64"
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}/sems_mitm_exporter:v{{ .Version }}-arm64v8"
- name_template: "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}/sems_mitm_exporter:latest"
image_templates:
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}/sems_mitm_exporter:v{{ .Version }}-amd64"
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY }}/sems_mitm_exporter:v{{ .Version }}-arm64v8"
release:
extra_files:
- glob: "{{ .Env.GITHUB_SBOM_PATH }}"
name_template: "{{ .ProjectName }}.v{{ .Version }}.sbom.spdx.json"