Skip to content

Commit

Permalink
add goreleaser back in for release publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
na4ma4 committed Jan 9, 2024
1 parent 95135e4 commit 641a0e2
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ jobs:
name: "Unit Test"
uses: na4ma4/actions/.github/workflows/unit-test.yml@main

goreleaser:
name: "Goreleaser"
if: startsWith(github.ref, 'refs/tags/v')
needs:
- unit-test
uses: na4ma4/actions/.github/workflows/goreleaser.yml@main
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
56 changes: 56 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
env:
- CGO_ENABLED=0

before:
hooks:
- make test
- go generate ./...
- go mod tidy
- go mod download

builds:
- id: traefik-acme
main: ./cmd/traefik-acme
binary: traefik-acme
flags:
- -tags=release
- -buildmode=default
- -trimpath
- -v
mod_timestamp: '{{ .CommitTimestamp }}'
goarm: [ '5', '6', '7' ]
goos: ['linux', 'darwin', 'windows']
goarch: ['amd64', 'arm', 'arm64']
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64

checksum:
algorithm: sha256
name_template: 'checksums.txt'

snapshot:
name_template: "{{ .Tag }}-next"

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

nfpms:
-
id: traefik-acme-nfpms
package_name: traefik-acme
builds:
- traefik-acme
homepage: https://github.com/na4ma4/traefik-acme
maintainer: na4ma4 <[email protected]>
description: Traefik ACME extraction tool.
formats:
- apk
- deb
bindir: /usr/bin

0 comments on commit 641a0e2

Please sign in to comment.