Skip to content

Commit 0cf2bbb

Browse files
authored
Merge pull request #538 from nckturner/auto-release-on-0.6
Add automatic release creation to release-0.6
2 parents 89236be + a645841 commit 0cf2bbb

File tree

4 files changed

+29
-46
lines changed

4 files changed

+29
-46
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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 }}

.goreleaser.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff 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-
4723
snapshot:
4824
name_template: "git-{{.ShortCommit}}"
4925

Dockerfile.goreleaser

Lines changed: 0 additions & 21 deletions
This file was deleted.

cloudbuild.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ steps:
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
- .

0 commit comments

Comments
 (0)