forked from kubernetes-sigs/aws-iam-authenticator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
60 lines (54 loc) · 1.62 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
# Configuration for https://goreleaser.com/
project_name: authenticator
builds:
- id: aws-iam-authenticator
binary: aws-iam-authenticator
main: ./cmd/aws-iam-authenticator/
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
env:
- CGO_ENABLED=0
ldflags:
- "-s -w -X sigs.k8s.io/aws-iam-authenticator/pkg.Version={{.Version}} -X sigs.k8s.io/aws-iam-authenticator/pkg.CommitID={{.Commit}} -buildid=''"
dockers:
- use: buildx
goarch: amd64
goos: linux
build_flag_templates:
- "--platform=linux/amd64"
dockerfile: Dockerfile.goreleaser
image_templates:
- "602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-iam-authenticator:{{ .Tag }}-amd64"
- use: buildx
goarch: arm64
goos: linux
build_flag_templates:
- "--platform=linux/arm64"
dockerfile: Dockerfile.goreleaser
image_templates:
- "602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-iam-authenticator:{{ .Tag }}-arm64"
docker_manifests:
- name_template: "602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-iam-authenticator:{{ .Tag }}"
image_templates:
- "602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-iam-authenticator:{{ .Tag }}-amd64"
- "602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-iam-authenticator:{{ .Tag }}-arm64"
snapshot:
name_template: "git-{{.ShortCommit}}"
archives:
- id: bin
format: binary
release:
github:
owner: kubernetes-sigs
name: aws-iam-authenticator
draft: true
prerelease: false
name_template: "v{{.Version}}"