From 831a308d3f03732b305b1390f3592aee416a5d39 Mon Sep 17 00:00:00 2001 From: Charles Treatman Date: Wed, 21 Aug 2024 16:13:10 -0500 Subject: [PATCH] fix goreleaser config for v2 --- .goreleaser.yml | 119 ++++++++++++++++++++++++------------------------ 1 file changed, 60 insertions(+), 59 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 819c7b5..2baf7c6 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,64 +1,65 @@ # This is an example goreleaser.yaml file with some sane defaults. # Make sure to check the documentation at http://goreleaser.com +version: 2 before: hooks: - - go mod download + - go mod download builds: -- id: docker-machine-driver-metal - env: - - CGO_ENABLED=0 - - GO111MODULE=on - binary: docker-machine-driver-metal - ldflags: - - -s -w -X github.com/equinix/docker-machine-driver-metal/pkg/drivers/metal.version={{.Version}} - goos: - - windows - - darwin - - linux - goarch: - - amd64 - - arm - - arm64 - goarm: - - 6 - - 7 - ignore: - - goos: windows - goarch: arm - - goos: windows - goarch: arm64 - - goos: darwin - goarch: arm64 - - goos: darwin - goarch: arm -- id: docker-machine-driver-packet - env: - - CGO_ENABLED=0 - - GO111MODULE=on - binary: docker-machine-driver-packet - ldflags: - - -s -w -X github.com/equinix/docker-machine-driver-metal/pkg/drivers/metal.version={{.Version}} - - -s -w -X github.com/equinix/docker-machine-driver-metal/pkg/drivers/metal.driverName=packet - goos: - - windows - - darwin - - linux - goarch: - - amd64 - - arm - - arm64 - goarm: - - 6 - - 7 - ignore: - - goos: windows - goarch: arm - - goos: windows - goarch: arm64 - - goos: darwin - goarch: arm64 - - goos: darwin - goarch: arm + - id: docker-machine-driver-metal + env: + - CGO_ENABLED=0 + - GO111MODULE=on + binary: docker-machine-driver-metal + ldflags: + - -s -w -X github.com/equinix/docker-machine-driver-metal/pkg/drivers/metal.version={{.Version}} + goos: + - windows + - darwin + - linux + goarch: + - amd64 + - arm + - arm64 + goarm: + - 6 + - 7 + ignore: + - goos: windows + goarch: arm + - goos: windows + goarch: arm64 + - goos: darwin + goarch: arm64 + - goos: darwin + goarch: arm + - id: docker-machine-driver-packet + env: + - CGO_ENABLED=0 + - GO111MODULE=on + binary: docker-machine-driver-packet + ldflags: + - -s -w -X github.com/equinix/docker-machine-driver-metal/pkg/drivers/metal.version={{.Version}} + - -s -w -X github.com/equinix/docker-machine-driver-metal/pkg/drivers/metal.driverName=packet + goos: + - windows + - darwin + - linux + goarch: + - amd64 + - arm + - arm64 + goarm: + - 6 + - 7 + ignore: + - goos: windows + goarch: arm + - goos: windows + goarch: arm64 + - goos: darwin + goarch: arm64 + - goos: darwin + goarch: arm archives: - name_template: "{{ .Binary }}_{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" format: zip @@ -73,10 +74,10 @@ checksum: release: name_template: "{{.ProjectName}}-v{{.Version}}" snapshot: - name_template: "{{ .Tag }}-next" + version_template: "{{ .Tag }}-next" changelog: sort: asc filters: exclude: - - '^docs:' - - '^test:' + - "^docs:" + - "^test:"