-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
43 lines (43 loc) · 1.39 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
name: "Deploy Extraction Pipelines"
description: "Deploy a set of Extraction Pipelines from yaml manifests"
inputs:
token-url:
description: "Token url to use for fetching OAuth2 tokens"
required: false
cdf-project-name:
description: "CDF project name (only required when using OAuth2 credentials)"
required: false
scopes:
description: "List of OAuth2 scopes (space separated)"
required: false
audience:
description: "OAuth2 audience"
required: false
client-id:
description: "OAuth2 client ID"
required: false
client-secret:
description: "OAuth2 client secret"
required: false
cluster:
description: "CDF Cluster"
required: false
default: "api"
config_file:
description: >-
The path to a yaml file containing Extraction 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/extpipes-cli:v3.0.0-beta3
env:
CDF_TOKEN_URL: ${{ inputs.token-url }}
CDF_PROJECT: ${{ inputs.cdf-project-name }}
CDF_CLIENT_ID: ${{ inputs.client-id }}
CDF_CLIENT_SECRET: ${{ inputs.client-secret }}
CDF_SCOPES: ${{ inputs.scopes }}
CDF_AUDIENCE: ${{ inputs.audience }}
CDF_CLUSTER: "${{ inputs.cluster }}"
args: ["deploy", "${{ inputs.config_file }}"]