Skip to content

Commit 32b2154

Browse files
committed
Update and tweak goreleaser to add proper buildinfo
1 parent e10c19d commit 32b2154

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
go-version: '>=1.23.0'
3333
cache: false
3434
- name: Build release
35-
uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5.1.0
35+
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
3636
with:
3737
distribution: goreleaser
3838
version: latest

.goreleaser.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# Make sure to check the documentation at https://goreleaser.com
2+
version: 2
23
before:
34
hooks:
45
- go mod tidy
56
- go generate ./...
7+
gomod:
8+
proxy: true
69
builds:
710
- main: ./cmd/rwp/
811
env:
@@ -27,7 +30,7 @@ builds:
2730
# - darwin
2831

2932
archives:
30-
- format: tar.gz
33+
- formats: tar.gz
3134
# this name template makes the OS and Arch compatible with the results of uname.
3235
# Used to start with {{ .ProjectName }}
3336
name_template: >-
@@ -40,8 +43,8 @@ archives:
4043
# use zip for windows archives
4144
format_overrides:
4245
- goos: windows
43-
format: zip
46+
formats: ['zip']
4447
checksum:
4548
name_template: 'checksums.txt'
4649
snapshot:
47-
name_template: "{{ incpatch .Version }}-next"
50+
version_template: "{{ incpatch .Version }}-next"

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ FROM --platform=$BUILDPLATFORM golang:1-bookworm@sha256:3149bc5043fa58cf127fd8db
22
ARG BUILDARCH TARGETOS TARGETARCH
33

44
# Install GoReleaser
5-
RUN wget --no-verbose "https://github.com/goreleaser/goreleaser/releases/download/v1.26.2/goreleaser_1.26.2_$BUILDARCH.deb"
6-
RUN dpkg -i "goreleaser_1.26.2_$BUILDARCH.deb"
5+
RUN wget --no-verbose "https://github.com/goreleaser/goreleaser/releases/download/v2.7.0/goreleaser_2.7.0_$BUILDARCH.deb"
6+
RUN dpkg -i "goreleaser_2.7.0_$BUILDARCH.deb"
77

88
# Create and change to the app directory.
99
WORKDIR /app

0 commit comments

Comments
 (0)