1
0
Fork 0
forked from mirrors/ntfy
ntfy/.goreleaser.yml

104 lines
2.7 KiB
YAML
Raw Normal View History

before:
hooks:
- go mod download
builds:
2021-11-20 20:43:15 +00:00
-
id: ntfy
binary: ntfy
env:
- CGO_ENABLED=1 # required for go-sqlite3
tags: [sqlite_omit_load_extension,osusergo,netgo]
2021-11-21 01:18:40 +00:00
ldflags:
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
2021-11-20 20:43:15 +00:00
goos: [linux]
goarch: [amd64]
-
id: ntfy_arm67
binary: ntfy
env:
- CGO_ENABLED=1 # required for go-sqlite3
- CC=arm-linux-gnueabi-gcc # apt install gcc-arm-linux-gnueabi
tags: [sqlite_omit_load_extension,osusergo,netgo]
2021-11-21 01:18:40 +00:00
ldflags:
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
2021-11-20 20:43:15 +00:00
goos: [linux]
goarch: [arm]
goarm:
- 6
- 7
-
id: ntfy_arm64
binary: ntfy
env:
2021-11-03 15:46:24 +00:00
- CGO_ENABLED=1 # required for go-sqlite3
2021-11-20 20:43:15 +00:00
- CC=aarch64-linux-gnu-gcc # apt install gcc-aarch64-linux-gnu
tags: [sqlite_omit_load_extension,osusergo,netgo]
2021-11-21 01:18:40 +00:00
ldflags:
- "-linkmode=external -extldflags=-static -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
2021-11-20 20:43:15 +00:00
goos: [linux]
goarch: [arm64]
nfpms:
-
package_name: ntfy
homepage: https://heckel.io/ntfy
maintainer: Philipp C. Heckel <philipp.heckel@gmail.com>
description: Simple pub-sub notification service
license: Apache 2.0
formats:
- deb
- rpm
bindir: /usr/bin
contents:
- src: config/config.yml
dst: /etc/ntfy/config.yml
type: config
- src: config/ntfy.service
dst: /lib/systemd/system/ntfy.service
scripts:
postremove: "scripts/postrm.sh"
archives:
-
wrap_in_directory: true
files:
- LICENSE
- README.md
- config/config.yml
- config/ntfy.service
replacements:
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
dockers:
2021-11-22 15:46:19 +00:00
- image_templates:
- &amd64_image "binwiederhier/ntfy:{{ .Tag }}-amd64"
use: buildx
dockerfile: Dockerfile
2021-11-20 20:43:15 +00:00
goarch: amd64
2021-11-22 15:46:19 +00:00
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- &arm64v8_image "binwiederhier/ntfy:{{ .Tag }}-arm64v8"
use: buildx
dockerfile: Dockerfile
goarch: arm64
build_flag_templates:
- "--platform=linux/arm64/v8"
docker_manifests:
- name_template: "binwiederhier/ntfy:latest"
image_templates:
2021-11-22 15:46:19 +00:00
- *amd64_image
- *arm64v8_image
- name_template: "binwiederhier/ntfy:{{ .Tag }}"
image_templates:
- *amd64_image
- *arm64v8_image