-
Notifications
You must be signed in to change notification settings - Fork 7
/
.goreleaser.yml
82 lines (82 loc) · 2.76 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
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
ldflags:
- -s -w # strip symbols, reduces binary size
- -X main.operatorversion={{.Version}}
- -X main.operatorbuilddate={{.Date}}
archives:
- name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
dockers:
- image_templates:
- "redradrat/aws-iam-operator:{{ .Tag }}-amd64"
- "redradrat/aws-iam-operator:latest-amd64"
- "ghcr.io/redradrat/aws-iam-operator/aws-iam-operator:{{ .Tag }}-amd64"
- "ghcr.io/redradrat/aws-iam-operator/aws-iam-operator:latest-amd64"
goos: linux
goarch: amd64
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
- "--builder=desktop-linux"
dockerfile: goreleaser_Dockerfile
- image_templates:
- "redradrat/aws-iam-operator:{{ .Tag }}-arm64"
- "redradrat/aws-iam-operator:latest-arm64"
- "ghcr.io/redradrat/aws-iam-operator/aws-iam-operator:{{ .Tag }}-arm64"
- "ghcr.io/redradrat/aws-iam-operator/aws-iam-operator:latest-arm64"
use: buildx
goos: linux
goarch: arm64
build_flag_templates:
- "--platform=linux/arm64"
- "--builder=desktop-linux"
dockerfile: goreleaser_Dockerfile
docker_manifests:
- name_template: redradrat/aws-iam-operator:{{ .Tag }}
image_templates:
- redradrat/aws-iam-operator:{{ .Tag }}-arm64
- redradrat/aws-iam-operator:{{ .Tag }}-amd64
- name_template: redradrat/aws-iam-operator:latest
image_templates:
- redradrat/aws-iam-operator:latest-arm64
- redradrat/aws-iam-operator:latest-amd64
- name_template: ghcr.io/redradrat/aws-iam-operator/aws-iam-operator:{{ .Tag }}
image_templates:
- ghcr.io/redradrat/aws-iam-operator/aws-iam-operator:{{ .Tag }}-arm64
- ghcr.io/redradrat/aws-iam-operator/aws-iam-operator:{{ .Tag }}-amd64
- name_template: ghcr.io/redradrat/aws-iam-operator:latest
image_templates:
- ghcr.io/redradrat/aws-iam-operator/aws-iam-operator:latest-arm64
- ghcr.io/redradrat/aws-iam-operator/aws-iam-operator:latest-amd64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
env_files:
# use only one or release will fail!
github_token: ~/.tokens/goreleaser_github