Skip to content

Commit

Permalink
Merge pull request #136 from ecadlabs/update_goreleaser_cfg
Browse files Browse the repository at this point in the history
chore: update goreleaser
  • Loading branch information
jevonearth authored Jul 1, 2021
2 parents 1905caf + a9f287d commit 827633d
Showing 1 changed file with 34 additions and 21 deletions.
55 changes: 34 additions & 21 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
before:
hooks:
- go mod download
builds:
- id: signatory
binary: signatory
Expand All @@ -11,18 +10,13 @@ builds:
- '-X github.com/ecadlabs/signatory/pkg/metrics.GitRevision={{.Version}}'
- '-X github.com/ecadlabs/signatory/pkg/metrics.GitBranch={{.Version}}'
goos:
- freebsd
- linux
- windows
- darwin
goarch:
- amd64
- arm
ignore:
- goos: darwin
goarch: 386
- goos: windows
goarch: 386
- arm64
- id: signatory-cli
binary: signatory-cli
env:
Expand All @@ -32,32 +26,50 @@ builds:
- '-X github.com/ecadlabs/signatory/pkg/metrics.GitRevision={{.Version}}'
- '-X github.com/ecadlabs/signatory/pkg/metrics.GitBranch={{.Version}}'
goos:
- freebsd
- linux
- windows
- darwin
goarch:
- amd64
- arm
ignore:
- goos: darwin
goarch: 386
- goos: windows
goarch: 386
- arm64
dockers:
- binaries:
- ids:
- signatory
- signatory-cli
builds:
- signatory
- signatory-cli
image_templates:
- 'ecadlabs/signatory:latest'
- 'ecadlabs/signatory:{{ .Tag }}'
- image_templates:
- 'ecadlabs/signatory:{{ .Tag }}-amd64'
- 'ecadlabs/signatory:latest-amd64'
- 'ghcr.io/ecadlabs/signatory:{{ .Tag }}-amd64'
- 'ghcr.io/ecadlabs/signatory:latest-amd64'
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/amd64"
- image_templates:
- 'ecadlabs/signatory:{{ .Tag }}-arm64'
- 'ecadlabs/signatory:latest-arm64'
- 'ghcr.io/ecadlabs/signatory:{{ .Tag }}-arm64'
- 'ghcr.io/ecadlabs/signatory:latest-arm64'
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/arm64"
goarch: arm64
archives:
- replacements:
'386': i386
darwin: Darwin
linux: Linux
windows: Windows
Expand All @@ -71,4 +83,5 @@ changelog:
filters:
exclude:
- '^docs:'
- '^website:'
- '^test:'

0 comments on commit 827633d

Please sign in to comment.