Skip to content

Commit

Permalink
Merge pull request #538 from nckturner/auto-release-on-0.6
Browse files Browse the repository at this point in the history
Add automatic release creation to release-0.6
  • Loading branch information
k8s-ci-robot authored Dec 15, 2022
2 parents 89236be + a645841 commit 0cf2bbb
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 46 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Github Action to create a release with goreleaser
name: Create Release
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v3
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24 changes: 0 additions & 24 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,6 @@ builds:
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}}"

Expand Down
21 changes: 0 additions & 21 deletions Dockerfile.goreleaser

This file was deleted.

1 change: 0 additions & 1 deletion cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ steps:
- build
- --tag=gcr.io/$PROJECT_ID/aws-iam-authenticator:$_GIT_TAG
- --tag=gcr.io/$PROJECT_ID/aws-iam-authenticator:latest
- --build-arg=IMAGE=public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-nonroot:2021-08-26-1630012071
- --platform=linux/amd64,linux/arm64
- --output=type=registry
- .
Expand Down

0 comments on commit 0cf2bbb

Please sign in to comment.