autoformat goreleaser yaml

This commit is contained in:
Michael Eischer 2025-04-14 22:30:37 +02:00
parent f018e99109
commit 2bb4d251e2

View file

@ -21,8 +21,7 @@ before:
# build a single binary # build a single binary
builds: builds:
- - # make sure everything is statically linked by disabling cgo altogether
# make sure everything is statically linked by disabling cgo altogether
env: env:
- CGO_ENABLED=0 - CGO_ENABLED=0
@ -33,7 +32,7 @@ builds:
# don't include any paths to source files in the resulting binary # don't include any paths to source files in the resulting binary
- -trimpath - -trimpath
mod_timestamp: '{{ .CommitTimestamp }}' mod_timestamp: "{{ .CommitTimestamp }}"
ldflags: ldflags:
# set the version variable in the main package # set the version variable in the main package
@ -66,14 +65,13 @@ builds:
# configure the resulting archives to create # configure the resulting archives to create
archives: archives:
- - # package a directory which contains the source file
# package a directory which contains the source file
wrap_in_directory: true wrap_in_directory: true
builds_info: &archive_file_info builds_info: &archive_file_info
owner: root owner: root
group: root group: root
mtime: '{{ .CommitDate }}' mtime: "{{ .CommitDate }}"
mode: 0644 mode: 0644
# add these files to all archives # add these files to all archives
@ -94,7 +92,7 @@ source:
# build a file containing the SHA256 hashes # build a file containing the SHA256 hashes
checksum: checksum:
name_template: 'SHA256SUMS' name_template: "SHA256SUMS"
# sign the checksum file # sign the checksum file
signs: signs:
@ -204,21 +202,20 @@ dockers:
dockerfile: "Dockerfile.goreleaser" dockerfile: "Dockerfile.goreleaser"
extra_files: *extra_files extra_files: *extra_files
docker_manifests: docker_manifests:
- name_template: "restic/rest-server:{{ .Version }}" - name_template: "restic/rest-server:{{ .Version }}"
image_templates: image_templates:
- "restic/rest-server:{{ .Version }}-amd64" - "restic/rest-server:{{ .Version }}-amd64"
- "restic/rest-server:{{ .Version }}-i386" - "restic/rest-server:{{ .Version }}-i386"
- "restic/rest-server:{{ .Version }}-arm32v6" - "restic/rest-server:{{ .Version }}-arm32v6"
- "restic/rest-server:{{ .Version }}-arm32v7" - "restic/rest-server:{{ .Version }}-arm32v7"
- "restic/rest-server:{{ .Version }}-arm64v8" - "restic/rest-server:{{ .Version }}-arm64v8"
- "restic/rest-server:{{ .Version }}-ppc64le" - "restic/rest-server:{{ .Version }}-ppc64le"
- name_template: "restic/rest-server:latest" - name_template: "restic/rest-server:latest"
image_templates: image_templates:
- "restic/rest-server:{{ .Version }}-amd64" - "restic/rest-server:{{ .Version }}-amd64"
- "restic/rest-server:{{ .Version }}-i386" - "restic/rest-server:{{ .Version }}-i386"
- "restic/rest-server:{{ .Version }}-arm32v6" - "restic/rest-server:{{ .Version }}-arm32v6"
- "restic/rest-server:{{ .Version }}-arm32v7" - "restic/rest-server:{{ .Version }}-arm32v7"
- "restic/rest-server:{{ .Version }}-arm64v8" - "restic/rest-server:{{ .Version }}-arm64v8"
- "restic/rest-server:{{ .Version }}-ppc64le" - "restic/rest-server:{{ .Version }}-ppc64le"