Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 9 additions & 24 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -472,37 +472,22 @@ jobs:
- bin

build-packages:
machine:
image: ubuntu-2204:current
docker:
- image: us-east1-docker.pkg.dev/influxdata-team-edge/ci-support/ci-packager-next@sha256:c92ea43b5529b9c4f93478c26d128b3a5aa811559e1fa634cdb476241f8d7620
auth:
username: _json_key
password: $CISUPPORT_GCS_AUTHORIZATION
steps:
- checkout
- attach_workspace:
at: /tmp/workspace
- checkout
- run: |
export DEBIAN_FRONTEND=noninteractive
sudo -E apt-get update
sudo -E apt-get install --no-install-recommends --yes \
asciidoc \
build-essential \
git \
python3 \
rpm \
ruby-dev \
xmlto

sudo gem install fpm

python3 -m pip install -r .circleci/scripts/package/requirements.txt

# Unfortunately, this must be executed as root. This is so permission
# modifying commands (chown, chmod, etc.) succeed.
sudo --preserve-env=CIRCLE_TAG,CIRCLE_SHA1 .circleci/scripts/package/build.py
- store_artifacts:
path: artifacts/
- run: packager .circleci/packages/config.yaml
- persist_to_workspace:
root: .
paths:
- artifacts
- store_artifacts:
path: artifacts/

sign-packages:
circleci_ip_ranges: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
---
version:
- match: '^v[0-9]+.[0-9]+.[0-9]+'
value: '{{env.CIRCLE_TAG[1:]}}'
- match: '.*'
value: '2.x-{{env.CIRCLE_SHA1[:8]}}'

sources:
- binary: /tmp/workspace/bin/influxd_linux_amd64/
target: artifacts/
Expand All @@ -21,7 +27,14 @@ sources:
plat: windows

packages:
- name: influxdb2
- name: influxdb2
description: Distributed time-series database.
license: MIT
vendor: InfluxData
homepage: https://influxdata.com
maintainer:
name: support
email: [email protected]
binaries:
- influxd
- influxd.exe
Expand All @@ -46,4 +59,15 @@ packages:
group: root
perms: 0755
target: usr/lib/influxdb/scripts/influxd-systemd-start.sh
source: .circleci/scripts/package/influxdb2
source: .circleci/packages/influxdb2
deb:
recommends:
- influxdata-archive-keyring
- influxdb2-cli
conflicts:
- influxdb
depends:
- curl
rpm:
recommends:
- influxdata-archive-keyring
Loading