File tree Expand file tree Collapse file tree 4 files changed +29
-46
lines changed Expand file tree Collapse file tree 4 files changed +29
-46
lines changed Original file line number Diff line number Diff line change 1+ # Github Action to create a release with goreleaser
2+ name : Create Release
3+ on :
4+ push :
5+ # Sequence of patterns matched against refs/tags
6+ tags :
7+ - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
8+
9+ jobs :
10+ goreleaser :
11+ runs-on : ubuntu-latest
12+ steps :
13+ -
14+ name : Checkout
15+ uses : actions/checkout@v3
16+ with :
17+ fetch-depth : 0
18+ -
19+ name : Set up Go
20+ uses : actions/setup-go@v3
21+ -
22+ name : Run GoReleaser
23+ uses : goreleaser/goreleaser-action@v4
24+ with :
25+ distribution : goreleaser
26+ version : latest
27+ args : release --rm-dist
28+ env :
29+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -20,30 +20,6 @@ builds:
2020 ldflags :
2121 - " -s -w -X sigs.k8s.io/aws-iam-authenticator/pkg.Version={{.Version}} -X sigs.k8s.io/aws-iam-authenticator/pkg.CommitID={{.Commit}} -buildid=''"
2222
23- dockers :
24- - use : buildx
25- goarch : amd64
26- goos : linux
27- build_flag_templates :
28- - " --platform=linux/amd64"
29- dockerfile : Dockerfile.goreleaser
30- image_templates :
31- - " 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-iam-authenticator:{{ .Tag }}-amd64"
32- - use : buildx
33- goarch : arm64
34- goos : linux
35- build_flag_templates :
36- - " --platform=linux/arm64"
37- dockerfile : Dockerfile.goreleaser
38- image_templates :
39- - " 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-iam-authenticator:{{ .Tag }}-arm64"
40-
41- docker_manifests :
42- - name_template : " 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-iam-authenticator:{{ .Tag }}"
43- image_templates :
44- - " 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-iam-authenticator:{{ .Tag }}-amd64"
45- - " 602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon/aws-iam-authenticator:{{ .Tag }}-arm64"
46-
4723snapshot :
4824 name_template : " git-{{.ShortCommit}}"
4925
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 77 - build
88 - --tag=gcr.io/$PROJECT_ID/aws-iam-authenticator:$_GIT_TAG
99 - --tag=gcr.io/$PROJECT_ID/aws-iam-authenticator:latest
10- - --build-arg=IMAGE=public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-nonroot:2021-08-26-1630012071
1110 - --platform=linux/amd64,linux/arm64
1211 - --output=type=registry
1312 - .
You can’t perform that action at this time.
0 commit comments