From c794a6454fedad64747002a5196745b81f8e8e94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Meira?= Date: Wed, 10 Sep 2025 12:17:21 +0100 Subject: [PATCH] fix: Update to latest goreleaser GH action --- .github/workflows/build.yml | 2 +- .github/workflows/release.yml | 4 ++-- .goreleaser.yml | 14 +++++--------- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d1aa426..8ef3d45 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,7 @@ name: Build on: push: - branches: ["*"] + branches: ["**"] jobs: build: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8e3f2aa..0a81f4f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,12 +33,12 @@ jobs: username: ${{ secrets.DOCKER_USER }} password: ${{ secrets.DOCKER_PASS }} - name: Release - uses: goreleaser/goreleaser-action@v1 + uses: goreleaser/goreleaser-action@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: version: latest - args: release + args: release --clean - name: "Configure AWS Credentials" uses: aws-actions/configure-aws-credentials@v1 with: diff --git a/.goreleaser.yml b/.goreleaser.yml index 5a0ad4f..1c68096 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,5 @@ +version: 2 + builds: - env: - CGO_ENABLED=0 @@ -7,24 +9,18 @@ builds: - darwin ldflags: - -s -w -X github.com/codacy/pulse-event-cli/internal/build.Version={{.Version}} -X github.com/codacy/pulse-event-cli/internal/build.Date={{time "2006-01-02"}} -archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 checksum: name_template: "checksums.txt" snapshot: - name_template: "{{ .Tag }}" + version_template: "{{ .Tag }}" changelog: sort: asc filters: exclude: - "^docs:" - "^test:" -dockers: - - image_templates: +dockers_v2: + - images: - "codacy/pulse-event-cli:{{ .Tag }}" - "codacy/pulse-event-cli:v{{ .Major }}" - "codacy/pulse-event-cli:v{{ .Major }}.{{ .Minor }}"