-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.goreleaser.yml
More file actions
62 lines (57 loc) · 1.86 KB
/
.goreleaser.yml
File metadata and controls
62 lines (57 loc) · 1.86 KB
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
version: 2
before:
hooks:
- go mod tidy
- go run cmd/gendoc/main.go
- mkdir -p .release-docs
- zip -r .release-docs/srvctl-docs-generated_{{ .Version }}.zip docs/generated
builds:
- binary: srvctl
flags:
- -trimpath
env:
- CGO_ENABLED=0
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}}'
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
dockers:
- build_flag_templates: [--platform=linux/amd64]
image_templates:
- "ghcr.io/serverscom/{{ .ProjectName }}:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}-amd64"
- "ghcr.io/serverscom/{{ .ProjectName }}:latest-amd64"
dockerfile: Dockerfile
use: buildx
- build_flag_templates: [--platform=linux/arm64]
image_templates:
- "ghcr.io/serverscom/{{ .ProjectName }}:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}-arm64"
- "ghcr.io/serverscom/{{ .ProjectName }}:latest-arm64"
dockerfile: Dockerfile
use: buildx
docker_manifests:
- name_template: "ghcr.io/serverscom/{{ .ProjectName }}:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}"
image_templates:
- "ghcr.io/serverscom/{{ .ProjectName }}:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}-amd64"
- "ghcr.io/serverscom/{{ .ProjectName }}:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}-arm64"
- name_template: "ghcr.io/serverscom/{{ .ProjectName }}:latest"
image_templates:
- "ghcr.io/serverscom/{{ .ProjectName }}:latest-amd64"
- "ghcr.io/serverscom/{{ .ProjectName }}:latest-arm64"
archives:
- formats: [zip]
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- .Arch }}
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
algorithm: sha256
release:
extra_files:
- glob: .release-docs/srvctl-docs-generated_*.zip