From 3e617b0816ede16b43687a3e48e20de299902d90 Mon Sep 17 00:00:00 2001 From: Mikhail Zholobov Date: Fri, 9 Apr 2021 16:50:38 +0200 Subject: [PATCH] Update GoReleaser config Discard custom archive name overrides. The provided defaults are more popular among similar projects. Also, set "zip" as the archive format for all artifacts, since that's the most common approach suitable for all platforms. --- .goreleaser.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 244bf2a..1f2feff 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -19,26 +19,18 @@ builds: goarch: 386 archives: -- replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 - format_overrides: - - goos: windows - format: zip +- format: zip checksum: name_template: 'checksums.txt' dockers: -- image_templates: +- dockerfile: Dockerfile + goos: linux + goarch: amd64 + image_templates: - 'legal90/{{.ProjectName}}:{{ .Tag }}' - 'legal90/{{.ProjectName}}:latest' - dockerfile: Dockerfile - binaries: - - '{{.ProjectName}}' build_flag_templates: - "--pull" - "--label=org.opencontainers.image.created={{.Date}}"