-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.goreleaser.yaml
98 lines (90 loc) · 2.14 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: 2
builds:
- env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w -X main.Version={{.Version}} -X main.Commit={{.ShortCommit}}
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: darwin
goarch: i386
tags:
- osusergo
- netgo
main: ./cmd/skiperator/
archives:
- builds:
- skiperator
files:
- README.md
- LICENSE
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
dockers:
- image_templates:
- "ghcr.io/kartverket/skiperator:{{ .Tag }}-linux-amd64"
use: buildx
dockerfile: Dockerfile.goreleaser
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
goos: linux
goarch: amd64
- image_templates:
- "ghcr.io/kartverket/skiperator:{{ .Tag }}-linux-arm64"
use: buildx
dockerfile: Dockerfile.goreleaser
build_flag_templates:
- "--pull"
- "--platform=linux/arm64"
goos: linux
goarch: arm64
docker_manifests:
- name_template: "ghcr.io/kartverket/skiperator:{{ .Tag }}"
image_templates:
- "ghcr.io/kartverket/skiperator:{{ .Tag }}-linux-arm64"
- "ghcr.io/kartverket/skiperator:{{ .Tag }}-linux-amd64"
docker_signs:
- artifacts: all
cmd: cosign
args:
- "sign"
- "--oidc-issuer=https://token.actions.githubusercontent.com"
- "${artifact}"
- "--yes"
signs:
- artifacts: all
cmd: cosign
signature: "${artifact}.sig"
args:
- "sign-blob"
- "--oidc-issuer=https://token.actions.githubusercontent.com"
- "--output-signature=${signature}"
- "${artifact}"
- "--yes"
sboms:
- artifacts: archive
checksum:
name_template: "checksums.txt"
snapshot:
version_template: "{{ .Tag }}-dev"
changelog:
sort: asc