glance/.goreleaser.yaml

70 lines
1.5 KiB
YAML
Raw Normal View History

2024-08-07 19:47:50 +02:00
project_name: glanceapp/glance
2024-05-24 23:26:40 +02:00
2024-08-07 19:47:50 +02:00
checksum:
disable: true
2024-05-24 23:26:40 +02:00
builds:
- binary: glance
env:
- CGO_ENABLED=0
goos:
- linux
- openbsd
2024-08-07 19:47:50 +02:00
- freebsd
2024-05-24 23:26:40 +02:00
- windows
2024-08-07 19:47:50 +02:00
- darwin
goarch:
- amd64
- arm64
- arm
- 386
goarm:
- 7
ldflags:
- -s -w -X github.com/glanceapp/glance/internal/glance.buildVersion={{ .Tag }}
2024-05-24 23:26:40 +02:00
archives:
2024-08-07 19:47:50 +02:00
-
name_template: "glance-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}"
files:
- nothing*
format_overrides:
2024-05-24 23:26:40 +02:00
- goos: windows
format: zip
dockers:
2024-08-07 19:47:50 +02:00
- image_templates:
- &amd64_image "{{ .ProjectName }}:{{ .Tag }}-amd64"
2024-05-24 23:26:40 +02:00
build_flag_templates:
- --platform=linux/amd64
2024-08-07 19:47:50 +02:00
goarch: amd64
use: buildx
dockerfile: Dockerfile.goreleaser
2024-05-24 23:26:40 +02:00
2024-08-07 19:47:50 +02:00
- image_templates:
- &arm64v8_image "{{ .ProjectName }}:{{ .Tag }}-arm64"
2024-05-24 23:26:40 +02:00
build_flag_templates:
- --platform=linux/arm64
2024-08-07 19:47:50 +02:00
goarch: arm64
use: buildx
dockerfile: Dockerfile.goreleaser
2024-05-24 23:26:40 +02:00
2024-08-07 19:47:50 +02:00
- image_templates:
2024-08-15 14:33:42 +02:00
- &armv7_image "{{ .ProjectName }}:{{ .Tag }}-armv7"
2024-08-07 19:47:50 +02:00
build_flag_templates:
2024-08-15 14:33:42 +02:00
- --platform=linux/arm/v7
2024-08-07 19:47:50 +02:00
goarch: arm
goarm: 7
use: buildx
dockerfile: Dockerfile.goreleaser
2024-05-24 23:26:40 +02:00
docker_manifests:
2024-08-07 19:47:50 +02:00
- name_template: "{{ .ProjectName }}:{{ .Tag }}"
2024-08-15 14:33:42 +02:00
image_templates: &multiarch_images
2024-08-07 19:47:50 +02:00
- *amd64_image
- *arm64v8_image
2024-08-15 14:33:42 +02:00
- *armv7_image
2024-08-07 19:47:50 +02:00
- name_template: "{{ .ProjectName }}:latest"
skip_push: auto
2024-08-15 14:33:42 +02:00
image_templates: *multiarch_images