Skip to content
database

GitHub Action

InfluxDB Action

v3 Latest version

InfluxDB Action

database

InfluxDB Action

Install and configure InfluxDB and the InfluxDB CLI

Installation

Copy and paste the following snippet into your .yml file.

              

- name: InfluxDB Action

uses: influxdata/influxdb-action@v3

Learn more about this action in influxdata/influxdb-action

Choose a version

InfluxDB Action

This action downloads, installs, and configures an InfluxDB OSS instance and CLI tooling that can be used in your automation.

This downloads the specified version (or latest or nightly), and adds influxd and influx commands to /usr/local/bin.

Usage

See action.yml

Setup and configure InfluxDB and CLI Tools

steps:
  - name: Check out repo
    uses: actions/checkout@v2
  - name: Setup InfluxDB
    uses: influxdata/influxdb-action@v3
    with:
      influxdb_version: latest
      influxdb_org: influxdata
      influxdb_user: ci_user
      influxdb_password: password
      influxdb_bucket: dummy

Install but don't start InfluxDB (influx CLI Tooling Only)

steps:
  - name: Check out repo
    uses: actions/checkout@v2
  - name: Setup InfluxDB
    uses: influxdata/influxdb-action@v3
    with:
      influxdb_version: latest
      influxdb_start: false

Use a specific version of InfluxDB

steps:
  - name: Check out repo
    uses: actions/checkout@v2
  - name: Setup InfluxDB
    uses: influxdata/influxdb-action@v3
    with:
      influxdb_version: 2.0.7
      influxdb_org: influxdata
      influxdb_user: ci_user
      influxdb_password: password
      influxdb_bucket: dummy