chore: update goreleaser nightly builds to be inline with daily/release builds (#20094)
parent
371e18a7a1
commit
668db04335
|
@ -1,4 +1,4 @@
|
|||
project_name: platform
|
||||
project_name: influxdb
|
||||
builds:
|
||||
- id: influx
|
||||
goos:
|
||||
|
@ -6,7 +6,7 @@ builds:
|
|||
- darwin
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
|
||||
main: ./cmd/influx/
|
||||
flags:
|
||||
- -tags={{if and (eq .Os "linux") (eq .Arch "amd64")}}osusergo,netgo,static_build{{end}}
|
||||
|
@ -19,13 +19,14 @@ builds:
|
|||
ldflags:
|
||||
- -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}} {{if and (eq .Os "linux") (eq .Arch "amd64")}}-extldflags "-fno-PIC -static -Wl,-z,stack-size=8388608"{{end}}
|
||||
binary: influx
|
||||
|
||||
- id: influxd
|
||||
goos:
|
||||
- linux
|
||||
- darwin
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
|
||||
main: ./cmd/influxd/
|
||||
flags:
|
||||
- -tags=assets{{if and (eq .Os "linux") (eq .Arch "amd64")}},osusergo,netgo,static_build{{end}}
|
||||
|
@ -41,13 +42,42 @@ builds:
|
|||
hooks:
|
||||
pre: make generate
|
||||
|
||||
nfpms:
|
||||
-
|
||||
id: "influxdata"
|
||||
builds: ["influx", "influxd"]
|
||||
formats:
|
||||
- deb
|
||||
- rpm
|
||||
bindir: /usr/bin
|
||||
files:
|
||||
"scripts/init.sh": "/usr/lib/influxdb/scripts/init.sh"
|
||||
"scripts/influxdb.service": "/usr/lib/influxdb/scripts/influxdb.service"
|
||||
"scripts/logrotate": "/etc/logrotate.d/influxdb"
|
||||
scripts:
|
||||
preinstall: "scripts/pre-install.sh"
|
||||
postinstall: "scripts/post-install.sh"
|
||||
postremove: "scripts/post-uninstall.sh"
|
||||
overrides:
|
||||
rpm:
|
||||
replacements:
|
||||
amd64: x86_64
|
||||
file_name_template: "influxdb-nightly.{{ .Arch }}{{if .Arm}}{{ if eq .Arm \"5\" }}el{{end}}{{ end }}{{if .Arm}}{{ if eq .Arm \"6\" }}hf{{end}}{{ end }}"
|
||||
deb:
|
||||
file_name_template: "influxdb_nightly_{{ .Arch }}{{if .Arm}}{{ if eq .Arm \"5\" }}el{{end}}{{ end }}{{if .Arm}}{{ if eq .Arm \"6\" }}hf{{end}}{{ end }}"
|
||||
vendor: InfluxData
|
||||
homepage: https://influxdata.com
|
||||
maintainer: support@influxdb.com
|
||||
description: Distributed time-series database.
|
||||
license: Proprietary
|
||||
|
||||
archives:
|
||||
- format: tar.gz
|
||||
wrap_in_directory: true
|
||||
format_overrides:
|
||||
- goos: windows
|
||||
format: zip
|
||||
name_template: "{{ .Binary }}_nightly_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
|
||||
name_template: "influxdb_nightly_{{ .Os }}_{{ .Arch }}{{if .Arm}}{{ if eq .Arm \"5\" }}el{{end}}{{ end }}{{if .Arm}}{{ if eq .Arm \"6\" }}hf{{end}}{{ end }}"
|
||||
files:
|
||||
- LICENSE
|
||||
- README.md
|
||||
|
@ -58,6 +88,10 @@ blobs:
|
|||
region: "us-east-1"
|
||||
folder: "platform/nightlies/"
|
||||
|
||||
checksum:
|
||||
name_template: "influxdb_nightly.sha256"
|
||||
algorithm: sha256
|
||||
|
||||
dockers:
|
||||
- goos: linux
|
||||
goarch: amd64
|
||||
|
@ -65,7 +99,7 @@ dockers:
|
|||
- influxd
|
||||
- influx
|
||||
image_templates:
|
||||
- "quay.io/influxdb/influx:nightly"
|
||||
- "quay.io/influxdb/influxdb:nightly"
|
||||
dockerfile: docker/influxd/Dockerfile
|
||||
extra_files:
|
||||
- docker/influxd/entrypoint.sh
|
||||
|
|
Loading…
Reference in New Issue