godash/.goreleaser.yaml
2023-04-16 16:07:44 +02:00

73 lines
1.9 KiB
YAML

before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
dockers:
- use: buildx
goos: linux
goarch: amd64
image_templates:
- "unjxde/{{ .ProjectName }}:latest-amd64"
- "unjxde/{{ .ProjectName }}:v{{ .Major }}-amd64"
- "unjxde/{{ .ProjectName }}:{{ .Tag }}-amd64"
build_flag_templates:
- "--build-arg=DATE={{ .Date }}"
- "--build-arg=VERSION={{ .Tag }}"
- "--platform=linux/amd64"
extra_files:
- entrypoint.sh
- bookmarks/config.yaml
- tailwind.config.js
- package.json
- yarn.lock
- static
- templates
- use: buildx
goos: linux
goarch: arm64
image_templates:
- "unjxde/{{ .ProjectName }}:latest-arm64v8"
- "unjxde/{{ .ProjectName }}:v{{ .Major }}-arm64v8"
- "unjxde/{{ .ProjectName }}:{{ .Tag }}-arm64v8"
build_flag_templates:
- "--build-arg=DATE={{ .Date }}"
- "--build-arg=VERSION={{ .Tag }}"
- "--platform=linux/arm64/v8"
extra_files:
- entrypoint.sh
- bookmarks/config.yaml
- tailwind.config.js
- package.json
- yarn.lock
- static
- templates
docker_manifests:
- name_template: "unjxde/{{ .ProjectName }}:{{ .Tag }}"
image_templates:
- "unjxde/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "unjxde/{{ .ProjectName }}:{{ .Tag }}-arm64v8"
- name_template: "unjxde/{{ .ProjectName }}:v{{ .Major }}"
image_templates:
- "unjxde/{{ .ProjectName }}:v{{ .Major }}-amd64"
- "unjxde/{{ .ProjectName }}:v{{ .Major }}-arm64v8"
- name_template: "unjxde/{{ .ProjectName }}:latest"
image_templates:
- "unjxde/{{ .ProjectName }}:latest-amd64"
- "unjxde/{{ .ProjectName }}:latest-arm64v8"
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"