-
Notifications
You must be signed in to change notification settings - Fork 59
43 lines (36 loc) · 1.27 KB
/
dbt.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: DBT
on:
workflow_dispatch:
jobs:
dbt-test:
name: RunDbt
concurrency: terraform
environment:
name: staging
env:
environmentName: staging
gitDeploy : true
skipTerraformDeployment: false
#TF_LOG : TRACE
runs-on: self-hosted
steps:
- name: PrintInfo
run: |
figlet Azure Data Services -t | lolcat && figlet Go Fast -t | lolcat
- name: Checkout
uses: actions/checkout@v3.0.0
- name: Get public IP
id: ip
uses: haythem/public-ip@v1.2
- name: Login via Az module
uses: azure/login@v1
with:
creds: '{"clientId":"${{ secrets.ARM_CLIENT_ID }}","clientSecret":"${{ secrets.ARM_CLIENT_SECRET }}","subscriptionId":"${{ secrets.ARM_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.ARM_TENANT_ID }}"}'
enable-AzPSSession: false
- name: DBT Install
id: dbt_install
working-directory: ./solution/Dbt
run: |
tgcheck=$(command -v dbt)
if [ -z "$tgcheck" ]; then tgcheck="NotInstalled";fi
if [ $tgcheck == "NotInstalled" ];then echo "DBT Not Installed. Installing"; pip install dbt-core; else echo "DBT Installed"; fi