generated from cognitedata/inso-extpipes-cli
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
49 lines (48 loc) · 1.51 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
48
49
name: "Deploy CDF Groups with Datasets, Spaces and RAW DBs scoping"
description: "Deploy (aka bootstrap) CDF Groups, Data-Sets, Spaces and RAW DBs from a yaml manifest"
inputs:
# cdf
cluster:
description: "CDF Cluster"
required: false
default: "westeurope-1"
cdf-project-name:
description: "CDF project name"
required: false
# cdf idp
client-id:
description: "OAuth2 client ID"
required: false
client-secret:
description: "OAuth2 client secret"
required: false
scopes:
description: "List of OAuth2 scopes (space separated)"
required: false
token-url:
description: "Token url to use for fetching OAuth2 tokens"
required: false
audience:
description: "OAuth2 audience"
required: false
# 'deploy' command parameters
config_file:
description: >-
The path to a yaml file containing Bootstrap Pipeline configuration.
This is relative to $GITHUB_WORKSPACE,
which will be the root of the repository when using actions/checkout with default settings.
required: true
runs:
using: "docker"
image: docker://cognite/bootstrap-cli:v3.4.1
env:
BOOTSTRAP_TOKEN_URL: ${{ inputs.token-url }}
BOOTSTRAP_PROJECT: ${{ inputs.cdf-project-name }}
BOOTSTRAP_CLIENT_ID: ${{ inputs.client-id }}
BOOTSTRAP_CLIENT_SECRET: ${{ inputs.client-secret }}
BOOTSTRAP_SCOPES: ${{ inputs.scopes }}
BOOTSTRAP_AUDIENCE: ${{ inputs.audience }}
BOOTSTRAP_CLUSTER: "${{ inputs.cluster }}"
args:
- "deploy"
- "${{ inputs.config_file }}"