90 lines
2.3 KiB
YAML
90 lines
2.3 KiB
YAML
project_name: influxdb2
|
|
|
|
builds:
|
|
- id: influxd
|
|
binary: influxd{{ if eq .Os "windows" }}.exe{{ end }}
|
|
builder: prebuilt
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
ignore:
|
|
- goos: darwin
|
|
goarch: arm64
|
|
- goos: windows
|
|
goarch: arm64
|
|
prebuilt:
|
|
path: bin/influxd_{{ .Os }}_{{ .Arch }}/influxd{{ if eq .Os "windows" }}.exe{{ end }}
|
|
|
|
nfpms:
|
|
- id: influxdb-server
|
|
package_name: influxdb2
|
|
formats:
|
|
- deb
|
|
- rpm
|
|
bindir: /usr/bin
|
|
contents:
|
|
- src: scripts/init.sh
|
|
dst: /usr/lib/influxdb/scripts/init.sh
|
|
- src: scripts/influxdb.service
|
|
dst: /usr/lib/influxdb/scripts/influxdb.service
|
|
- src: scripts/logrotate
|
|
dst: /etc/logrotate.d/influxdb
|
|
- src: scripts/influxdb2-upgrade.sh
|
|
dst: /usr/share/influxdb/influxdb2-upgrade.sh
|
|
- src: scripts/influxd-systemd-start.sh
|
|
dst: /usr/lib/influxdb/scripts/influxd-systemd-start.sh
|
|
scripts:
|
|
preinstall: scripts/pre-install.sh
|
|
postinstall: scripts/post-install.sh
|
|
postremove: scripts/post-uninstall.sh
|
|
conflicts:
|
|
- influxdb
|
|
dependencies:
|
|
- curl
|
|
recommends:
|
|
- influxdb2-cli
|
|
overrides:
|
|
rpm:
|
|
replacements:
|
|
amd64: x86_64
|
|
arm64: aarch64
|
|
armhf: armv7hl
|
|
file_name_template: "influxdb2-{{ .filenameVersion }}.{{ .Arch }}"
|
|
deb:
|
|
file_name_template: "influxdb2-{{ .filenameVersion }}-{{ .Arch }}"
|
|
vendor: InfluxData
|
|
homepage: https://influxdata.com
|
|
maintainer: support@influxdb.com
|
|
description: Distributed time-series database.
|
|
license: MIT
|
|
|
|
archives:
|
|
- id: influxd_only
|
|
format: tar.gz
|
|
format_overrides:
|
|
- goos: windows
|
|
format: zip
|
|
wrap_in_directory: true
|
|
name_template: "influxdb2-{{ .filenameVersion }}-{{ .Os }}-{{ .Arch }}"
|
|
files:
|
|
- LICENSE
|
|
- README.md
|
|
|
|
checksum:
|
|
name_template: "influxdb2-{{ .filenameVersion }}.sha256"
|
|
algorithm: sha256
|
|
|
|
signs:
|
|
- signature: "${artifact}.asc"
|
|
cmd: gpg
|
|
args: [ "--passphrase", "{{.Env.PASSPHRASE}}", "--pinentry-mode=loopback", "--batch", "--armor", "--detach-sign", "${artifact}"]
|
|
artifacts: all
|
|
|
|
# Do not make github release
|
|
release:
|
|
disable: true
|