Skip to content

Transformations (#6) #2

Transformations (#6)

Transformations (#6) #2

---
name: Deploy transformations
on:
push:
branches: [main]
paths:
- config/transformations/**
- .github/workflows/deploy-transformations.yml
jobs:
deploy:
name: Deploy transformations
runs-on: ubuntu-latest
strategy:
matrix:
environment: [dev, prod]
include:
- environment: dev
CDF_CLUSTER: westeurope-1
CDF_PROJECT: cdf-bootcamp-16-test
IDP_TENANT: 16e3985b-ebe8-4e24-9da4-933e21a9fc81
- environment: prod
CDF_CLUSTER: westeurope-1
CDF_PROJECT: cdf-bootcamp-16-prod
IDP_TENANT: 16e3985b-ebe8-4e24-9da4-933e21a9fc81
environment: ${{ matrix.environment}}
env:
CDF_HOST: https://${{ matrix.CDF_CLUSTER }}.cognitedata.com/
# Credentials to be used when running your transformations,
# as referenced in your manifests
COGNITE_CLIENT_ID: ${{ secrets.CLIENT_ID }}
COGNITE_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
CDF_PROJECT_NAME: ${{ matrix.CDF_PROJECT }}
steps:
- uses: actions/checkout@v2
- uses: cognitedata/[email protected]
with:
path: config/transformations
client-id: ${{ secrets.CLIENT_ID }}
client-secret: ${{ secrets.CLIENT_SECRET }}
cdf-project-name: ${{ matrix.CDF_PROJECT }}
token-url: https://login.microsoftonline.com/${{ matrix.IDP_TENANT }}/oauth2/v2.0/token
scopes: ${{ env.CDF_HOST }}.default
cluster: ${{ matrix.CDF_CLUSTER }}