-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yml
91 lines (84 loc) · 2.62 KB
/
.goreleaser.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
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
# before:
# hooks:
# - ./scripts/completions.sh
builds:
- binary: akslifecycle
main: ./
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
ldflags:
- -s -w
release:
prerelease: auto
universal_binaries:
- replace: true
archives:
- name_template: >-
{{- .ProjectName }}_ {{- .Version }}_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end -}}
format_overrides:
- goos: windows
format: zip
builds_info:
group: root
owner: root
files:
- README.md
- LICENSE
checksum:
name_template: 'checksums.txt'
dockers:
- use: buildx
image_templates:
- "ghcr.io/simplifi-ed/{{ .ProjectName }}:{{ .Version }}-amd64"
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.description={{ .ProjectName }}"
- "--label=org.opencontainers.image.url=https://github.com/Simplifi-ED/{{ .ProjectName }}"
- "--label=org.opencontainers.image.source=https://github.com/Simplifi-ED/{{ .ProjectName }}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.licenses=GPL-3.0"
extra_files:
- go.mod
- go.sum
- utils/lifecycle/startNode.go
- utils/lifecycle/stopNode.go
- internal/azure.go
- cmd/root.go
- main.go
- use: buildx
goarch: arm64
image_templates:
- "ghcr.io/simplifi-ed/{{ .ProjectName }}:{{ .Version }}-arm64v8"
build_flag_templates:
- "--platform=linux/arm64/v8"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.description={{ .ProjectName }}"
- "--label=org.opencontainers.image.url=https://github.com/Simplifi-ED/{{ .ProjectName }}"
- "--label=org.opencontainers.image.source=https://github.com/Simplifi-ED/{{ .ProjectName }}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.licenses=GPL-3.0"
extra_files:
- go.mod
- go.sum
- utils/lifecycle/startNode.go
- utils/lifecycle/stopNode.go
- internal/azure.go
- cmd/root.go
- main.go
docker_manifests:
- name_template: ghcr.io/simplifi-ed/{{ .ProjectName }}:{{ .Version }}
image_templates:
- ghcr.io/simplifi-ed/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/simplifi-ed/{{ .ProjectName }}:{{ .Version }}-arm64v8