From 8517e63260717e98c402b97ce15b2f85ac2bfbd7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 21 Aug 2024 16:18:33 -0500 Subject: [PATCH] chore(deps): update goreleaser/goreleaser-action action to v6 (#89) * chore(deps): update goreleaser/goreleaser-action action to v6 * fix goreleaser config for v2 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Charles Treatman --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 2 +- .goreleaser.yml | 119 +++++++++++++++++----------------- 3 files changed, 62 insertions(+), 61 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e3da122..8742633 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: version: v1.56 - name: Check GoReleaser - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v6 with: version: latest args: check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4b8e8a4..71a4e5b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: go-version: 1.22 - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v6 with: version: latest args: release --rm-dist 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:"