generated from cognitedata/enablement-bootcamp-config
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.97 KB
/
deploy-extpipes-cli.yaml
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
50
51
---
name: deploy-extpipes-cli
on:
push:
branches:
- main
jobs:
deploy_extpipes:
name: deploy extpipes-cli
runs-on: ubuntu-latest
strategy:
matrix:
environment: [test, prod]
include:
- environment: test
# CDF cluster, like bluefield, greenfield or westeurope-1
CDF_CLUSTER: westeurope-1
# CDF Project name
CDF_PROJECT: cdf-bootcamp-45-test
# Azure AD tenant id
IDP_TENANT: 16e3985b-ebe8-4e24-9da4-933e21a9fc81
- environment: prod
# CDF cluster, like bluefield, greenfield or westeurope-1
CDF_CLUSTER: westeurope-1
# CDF Project name
CDF_PROJECT: cdf-bootcamp-45-prod
# Azure AD tenant id
IDP_TENANT: 16e3985b-ebe8-4e24-9da4-933e21a9fc81
environment: ${{ matrix.environment}}
env:
CDF_HOST: https://${{ matrix.CDF_CLUSTER }}.cognitedata.com/
steps:
- uses: actions/checkout@v3
- uses: cognitedata/inso-extpipes-cli@main
env:
EXTPIPES_IDP_CLIENT_ID: ${{ secrets.CLIENT_ID }}
EXTPIPES_IDP_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
EXTPIPES_CDF_HOST: ${{ env.CDF_HOST }}
EXTPIPES_CDF_PROJECT: ${{ matrix.CDF_PROJECT }}
EXTPIPES_IDP_TOKEN_URL: https://login.microsoftonline.com/${{ matrix.IDP_TENANT }}/oauth2/v2.0/token
EXTPIPES_IDP_SCOPES: ${{ env.CDF_HOST }}.default
with:
# Path to extpipes cli configuration file
config_file: ./config/extpipes/extpipes-cli-config.yml
# "yes"|"no" deploy with special groups and aad_mappings
#with_special_groups: "yes"