Skip to content

Commit

Permalink
chore: Update goreleaser (#2233)
Browse files Browse the repository at this point in the history
  • Loading branch information
schoren committed Mar 22, 2023
1 parent 02160a7 commit 479cce0
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-demo.yml
Expand Up @@ -79,7 +79,7 @@ jobs:
- uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser-pro
version: v1.16.1
version: v1.16.2
args: release --clean --skip-announce -f .goreleaser.dev.yaml
env:
VERSION: ${{ github.ref_name}}-demo
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-main.yml
Expand Up @@ -85,7 +85,7 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
with:
distribution: goreleaser-pro
version: v1.16.1
version: v1.16.2
args: release --clean --split --nightly
env:
GOOS: ${{ matrix.GOOS }}
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
with:
distribution: goreleaser-pro
version: v1.16.1
version: v1.16.2
args: continue --merge
env:
VERSION: sha-${{ env.sha_short }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yaml
Expand Up @@ -101,7 +101,7 @@ jobs:
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser-pro
version: v1.16.1
version: v1.16.2
args: build --single-target --clean --snapshot
env:
VERSION: pr-${{ github.event.pull_request.number }}
Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:
- uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser-pro
version: v1.16.1
version: v1.16.2
args: release --clean --skip-announce --snapshot -f .goreleaser.dev.yaml
env:
VERSION: pr-${{ github.event.pull_request.number }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-candidate.yml
Expand Up @@ -82,7 +82,7 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
with:
distribution: goreleaser-pro
version: v1.16.1
version: v1.16.2
args: release --clean -f .goreleaser.rc.yaml
env:
VERSION: ${{ github.ref_name}}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-version.yml
Expand Up @@ -93,7 +93,7 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
with:
distribution: goreleaser-pro
version: v1.16.1
version: v1.16.2
args: release --clean
env:
VERSION: ${{ github.ref_name}}
Expand Down
22 changes: 18 additions & 4 deletions .goreleaser.rc.yaml
Expand Up @@ -107,8 +107,15 @@ docker_manifests:
- 'kubeshop/tracetest:{{ .Env.VERSION }}-arm64'

archives:
- replacements:
386: i386
- name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- with .Arm }}v{{ . }}{{ end }}
{{- with .Mips }}_{{ . }}{{ end }}
{{- if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}
checksum:
name_template: 'checksums.txt'

Expand All @@ -123,8 +130,15 @@ nfpms:
formats:
- deb
- rpm
replacements:
386: i386
file_name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- with .Arm }}v{{ . }}{{ end }}
{{- with .Mips }}_{{ . }}{{ end }}
{{- if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}
deb:
lintian_overrides:
- statically-linked-binary
22 changes: 18 additions & 4 deletions .goreleaser.yaml
Expand Up @@ -119,8 +119,15 @@ docker_manifests:
- 'kubeshop/tracetest:{{ .Env.VERSION }}-arm64'

archives:
- replacements:
386: i386
- name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- with .Arm }}v{{ . }}{{ end }}
{{- with .Mips }}_{{ . }}{{ end }}
{{- if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}
checksum:
name_template: 'checksums.txt'

Expand All @@ -135,8 +142,15 @@ nfpms:
formats:
- deb
- rpm
replacements:
386: i386
file_name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- with .Arm }}v{{ . }}{{ end }}
{{- with .Mips }}_{{ . }}{{ end }}
{{- if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}
deb:
lintian_overrides:
- statically-linked-binary
Expand Down
2 changes: 1 addition & 1 deletion Makefile
@@ -1,6 +1,6 @@
PROJECT_ROOT=${PWD}

GORELEASER_VERSION=1.16.1-pro
GORELEASER_VERSION=1.16.2-pro
CURRENT_GORELEASER_VERSION := $(shell goreleaser --version | head -n 1 | cut -d' ' -f3-)
goreleaser-version:
ifneq "$(CURRENT_GORELEASER_VERSION)" "$(GORELEASER_VERSION)"
Expand Down

0 comments on commit 479cce0

Please sign in to comment.