Fix goreleaser deprecation warnings

- archives.format → archives.formats (now a list)
- archives.builds → archives.ids (renamed for consistency)
- dockers → dockers_v2 (new consolidated docker config)
- Update Dockerfile to use TARGETPLATFORM build arg

https://claude.ai/code/session_01QqkHTjwoFvsNUXtQj3RaU8
This commit is contained in:
Claude
2026-03-24 13:40:06 +00:00
parent f36a3ece9e
commit f445202cb8
2 changed files with 22 additions and 17 deletions
+18 -14
View File
@@ -74,39 +74,43 @@ universal_binaries:
name_template: jsontoml name_template: jsontoml
archives: archives:
- id: jsontoml - id: jsontoml
format: tar.xz formats:
builds: - tar.xz
ids:
- jsontoml - jsontoml
files: files:
- none* - none*
name_template: "{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}" name_template: "{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}"
- id: tomljson - id: tomljson
format: tar.xz formats:
builds: - tar.xz
ids:
- tomljson - tomljson
files: files:
- none* - none*
name_template: "{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}" name_template: "{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}"
- id: tomll - id: tomll
format: tar.xz formats:
builds: - tar.xz
ids:
- tomll - tomll
files: files:
- none* - none*
name_template: "{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}" name_template: "{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}"
dockers: dockers_v2:
- id: tools - id: tools
goos: linux
goarch: amd64
ids: ids:
- jsontoml - jsontoml
- tomljson - tomljson
- tomll - tomll
image_templates: images:
- "ghcr.io/pelletier/go-toml:latest" - "ghcr.io/pelletier/go-toml"
- "ghcr.io/pelletier/go-toml:{{ .Tag }}" tags:
- "ghcr.io/pelletier/go-toml:v{{ .Major }}" - "latest"
skip_push: false - "{{ .Tag }}"
- "v{{ .Major }}"
platforms:
- linux/amd64
checksum: checksum:
name_template: 'sha256sums.txt' name_template: 'sha256sums.txt'
snapshot: snapshot:
+4 -3
View File
@@ -1,5 +1,6 @@
FROM scratch FROM scratch
ENV PATH "$PATH:/bin" ENV PATH "$PATH:/bin"
COPY tomll /bin/tomll ARG TARGETPLATFORM
COPY tomljson /bin/tomljson COPY $TARGETPLATFORM/tomll /bin/tomll
COPY jsontoml /bin/jsontoml COPY $TARGETPLATFORM/tomljson /bin/tomljson
COPY $TARGETPLATFORM/jsontoml /bin/jsontoml