From a9f287de0e4fe5b35e3290cbd6972131e47b65ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jev=20Bj=C3=B6rsell?= Date: Thu, 1 Jul 2021 10:29:28 -0700 Subject: [PATCH] chore: update goreleaser --- .goreleaser.yml | 55 ++++++++++++++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 87e9a02a..5c226428 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,6 +1,5 @@ before: hooks: - - go mod download builds: - id: signatory binary: signatory @@ -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: @@ -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 @@ -71,4 +83,5 @@ changelog: filters: exclude: - '^docs:' + - '^website:' - '^test:'