build: update deb/rpm metadata to ref influxdb2 v2.1.0 (#292)

This commit is contained in:
Daniel Moran
2021-10-07 09:04:22 -04:00
committed by GitHub
parent c4a5a13c8e
commit cafae42d3c
2 changed files with 14 additions and 9 deletions

View File

@ -156,9 +156,14 @@ jobs:
- checkout - checkout
- setup - setup
- install-goreleaser - install-goreleaser
- run:
name: Make a pseudo-tag for the snapshot build
command: |
latest_tag=$(git describe --tags --abbrev=0)
git tag ${latest_tag}+SNAPSHOT.$(git rev-parse --short HEAD)
- run: - run:
name: Cross-build all targets name: Cross-build all targets
command: goreleaser build --rm-dist --snapshot command: IS_SNAPSHOT=1 goreleaser release --rm-dist --skip-publish --skip-sign --skip-validate
- store_artifacts: - store_artifacts:
path: dist path: dist

View File

@ -38,20 +38,20 @@ nfpms:
deb: deb:
replaces: replaces:
# Tells the deb system that it's ok for this package to overwrite files from versions of the `influxdb2` # Tells the deb system that it's ok for this package to overwrite files from versions of the `influxdb2`
# package prior to 2.0.8. Needed to support installing `influxdb2-cli` next to `influxdb2` without upgrading # package prior to 2.1.0. Needed to support installing `influxdb2-cli` next to `influxdb2` without upgrading
# the server. # the server.
- influxdb2 (<< 2.0.8) - influxdb2 (<< 2.1.0)
file_name_template: influxdb2-client-{{if index .Env "IS_NIGHTLY"}}nightly{{else}}{{.Version}}{{end}}-{{ .Arch }} file_name_template: influxdb2-client-{{if index .Env "IS_SNAPSHOT"}}SNAPSHOT{{else if index .Env "IS_NIGHTLY"}}nightly{{else}}{{.Version}}{{end}}-{{ .Arch }}
rpm: rpm:
conflicts: conflicts:
# Tells the rpm system that this package can't be installed alongside versions of the `influxdb2` package # Tells the rpm system that this package can't be installed alongside versions of the `influxdb2` package
# prior to 2.0.8. This is as good as we can do for rpm; there's no equivalent to deb's "replaces" metadata. # prior to 2.1.0. This is as good as we can do for rpm; there's no equivalent to deb's "replaces" metadata.
- influxdb2 < 2.0.8 - influxdb2 < 2.1.0
replacements: replacements:
amd64: x86_64 amd64: x86_64
arm64: aarch64 arm64: aarch64
armhf: armv7hl armhf: armv7hl
file_name_template: influxdb2-client-{{if index .Env "IS_NIGHTLY"}}nightly{{else}}{{.Version}}{{end}}.{{ .Arch }} file_name_template: influxdb2-client-{{if index .Env "IS_SNAPSHOT"}}SNAPSHOT{{else if index .Env "IS_NIGHTLY"}}nightly{{else}}{{.Version}}{{end}}.{{ .Arch }}
vendor: InfluxData vendor: InfluxData
homepage: https://influxdata.com homepage: https://influxdata.com
maintainer: support@influxdata.com maintainer: support@influxdata.com
@ -65,13 +65,13 @@ archives:
- goos: windows - goos: windows
format: zip format: zip
wrap_in_directory: true wrap_in_directory: true
name_template: influxdb2-client-{{if index .Env "IS_NIGHTLY"}}nightly{{else}}{{.Version}}{{end}}-{{ .Os }}-{{ .Arch }} name_template: influxdb2-client-{{if index .Env "IS_SNAPSHOT"}}SNAPSHOT{{else if index .Env "IS_NIGHTLY"}}nightly{{else}}{{.Version}}{{end}}-{{ .Os }}-{{ .Arch }}
files: files:
- LICENSE - LICENSE
- README.md - README.md
checksum: checksum:
name_template: influxdb2-client-{{if index .Env "IS_NIGHTLY"}}nightly{{else}}{{.Version}}{{end}}.sha256 name_template: influxdb2-client-{{if index .Env "IS_SNAPSHOT"}}SNAPSHOT{{else if index .Env "IS_NIGHTLY"}}nightly{{else}}{{.Version}}{{end}}.sha256
algorithm: sha256 algorithm: sha256
signs: signs: