Skip to content

Commit 3d80b9e

Browse files
authored
Goreleaser deprecations and updates (#584)
* Remove windows/arm builds Go no longer supports 32bit ARM builds https://go-review.googlesource.com/c/go/+/648795 * Switch name to version template * Update archive formats config * Update alpine build image
1 parent 1c10877 commit 3d80b9e

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

.goreleaser.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ builds:
2323
- 6
2424
- 7
2525

26+
ignore:
27+
- goos: windows
28+
goarch: arm
29+
2630
archives:
2731
-
2832
name_template: >-
@@ -33,14 +37,16 @@ archives:
3337
{{- if eq .Arch "arm" }}arm32-v{{ .Arm }}
3438
{{- else }}{{ .Arch }}{{ end }}
3539
36-
format: tar.gz
40+
formats:
41+
- tar.gz
3742

3843
files:
3944
- none*
4045

4146
format_overrides:
4247
- goos: windows
43-
format: zip
48+
formats:
49+
- zip
4450

4551
builds_info:
4652
group: root
@@ -52,7 +58,7 @@ checksum:
5258
algorithm: sha256
5359

5460
snapshot:
55-
name_template: "{{ .ProjectName }}_v{{ .Version }}"
61+
version_template: "{{ .ProjectName }}_v{{ .Version }}"
5662

5763
changelog:
5864
sort: asc

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM golang:1.21-alpine as builder
1+
FROM golang:1.26-alpine3.22 AS builder
22

33
RUN apk add --update \
44
make
55

6-
ENV CGO_ENABLED 0
6+
ENV CGO_ENABLED=0
77

88
RUN mkdir -p /out
99
RUN mkdir -p /go/src/github.com/vultr/vultr-cli

Dockerfile.goreleaser

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
FROM alpine:3.12
1+
FROM alpine:3.22
22

33
RUN apk add --no-cache ca-certificates
44
COPY vultr-cli .
5-
ENTRYPOINT ["./vultr-cli"]
5+
ENTRYPOINT ["./vultr-cli"]

0 commit comments

Comments
 (0)