Skip to content

Commit

Permalink
Update GoReleaser config and build for multi arch binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Schneppenheim committed May 29, 2022
1 parent b71e21f commit 52a26f9
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release on tag
name: GoReleaser

on:
push:
Expand All @@ -12,14 +12,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.16
go-version: '^1.18'
check-latest: true
cache: true

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
35 changes: 33 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
release:
name_template: '{{.Version}} / {{time "2006-01-02"}}'

prerelease: auto
mode: append
footer: |
## Docker Image
Use the following command to pull this release's Docker image:
```sh
docker pull vectorizedio/kminion:{{ .Tag }}
```
changelog:
skip: false
skip: false
use: github
filters:
# Commit messages matching the regexp listed here will be removed from the changelog
exclude:
- - '^docs:'
- '^test:'
- '^npm:'
- '^go.mod:'
- '^.github:'
- 'Merge branch'

builds:
- id: kminion
binary: kminion
goos:
- darwin
- linux
- windows
goarch: amd64
ldflags:
- -s -w -X main.version={{.Version}} -X main.builtAt={{.Date}} -X main.commit={{.Commit}}

checksum:
name_template: 'checksums.txt'

0 comments on commit 52a26f9

Please sign in to comment.