forked from influxdata/influxdb-action
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
47 lines (47 loc) · 1.72 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: 'The InfluxDB Action'
description: 'Install and configure InfluxDB and the InfluxDB CLI.'
branding:
icon: 'database'
color: 'gray-dark'
inputs:
influxdb_version:
description: 'Sets the version of InfluxDB to use (for example: 2.0.7). See https://portal.influxdata.com/downloads/ for versions. latest and nightly are also supported.'
required: true
influxdb_start:
description: 'Set to false if you only need to use the cli tools without a locally running InfluxDB instance. If this is false, you can ignore the init parameters.'
required: false
default: true
influxdb_org:
description: 'The initial Organization of the InfluxDB instance.'
required: false
default: 'organization'
influxdb_user:
description: 'The initial User of the InfluxDB instance.'
required: false
default: 'user'
influxdb_password:
description: 'The initial Password of the InfluxDB instance.'
required: false
default: 'password'
influxdb_bucket:
description: 'The initial Bucket of the InfluxDB instance.'
required: false
default: 'bucket'
runs:
using: "composite"
steps:
- name: Download and Install InfluxDB
run: |
export INFLUXDB_VERSION=${{inputs.influxdb_version}}
${{ github.action_path }}/install-influxdb.sh
shell: bash
- name: Configure InfluxDB
run: |
export INFLUXDB_START=${{inputs.influxdb_start}}
export INFLUXDB_ORG=${{inputs.influxdb_org}}
export INFLUXDB_USER=${{inputs.influxdb_user}}
export INFLUXDB_PASSWORD=${{inputs.influxdb_password}}
export INFLUXDB_BUCKET=${{inputs.influxdb_bucket}}
${{ github.action_path }}/setup-influxdb.sh
unset INFLUXDB_PASSWORD
shell: bash