-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
118 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Deploy-PROD | ||
|
||
# Controls when the workflow will run | ||
on: | ||
schedule: | ||
- cron: '0/10 * * * *' | ||
# GITHUB_REF: Default branch | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
inputs: | ||
whatIf: | ||
description: 'Enable WhatIf Mode' | ||
type: boolean | ||
required: true | ||
default: true | ||
|
||
env: | ||
PROFILE: Contoso | ||
|
||
jobs: | ||
Deployment: | ||
runs-on: ubuntu-latest | ||
environment: Production | ||
container: | ||
image: ghcr.io/pbi-tools/pbi-tools-core:1.0.0-rc.6 | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v3 | ||
|
||
- name: pbi-tools info | ||
run: | | ||
/app/pbi-tools/pbi-tools.core info | ||
- name: pbi-tools deploy (WhatIf) | ||
if: ${{ github.event.inputs.whatIf == 'true' }} | ||
run: | | ||
/app/pbi-tools/pbi-tools.core deploy . "$PROFILE" Production -whatIf | ||
env: | ||
PBI_CLIENT_SECRET: ${{ secrets.PBI_CLIENT_SECRET }} | ||
SQL_PWD: ${{ secrets.SQL_PWD }} | ||
|
||
- name: pbi-tools deploy | ||
if: ${{ github.event.inputs.whatIf != 'true' }} | ||
run: | | ||
/app/pbi-tools/pbi-tools.core deploy . "$PROFILE" Production | ||
env: | ||
PBI_CLIENT_SECRET: ${{ secrets.PBI_CLIENT_SECRET }} | ||
SQL_PWD: ${{ secrets.SQL_PWD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Deploy-UAT | ||
|
||
# Controls when the workflow will run | ||
on: | ||
push: | ||
branches: | ||
- 'Release/*' | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
inputs: | ||
whatIf: | ||
description: 'Enable WhatIf Mode' | ||
type: boolean | ||
required: true | ||
default: true | ||
|
||
env: | ||
PROFILE: Contoso | ||
|
||
jobs: | ||
Deployment: | ||
runs-on: ubuntu-latest | ||
environment: UAT | ||
container: | ||
image: ghcr.io/pbi-tools/pbi-tools-core:1.0.0-rc.6 | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v3 | ||
|
||
- name: pbi-tools info | ||
run: | | ||
/app/pbi-tools/pbi-tools.core info | ||
- name: pbi-tools deploy (WhatIf) | ||
if: ${{ github.event.inputs.whatIf == 'true' }} | ||
run: | | ||
/app/pbi-tools/pbi-tools.core deploy . "$PROFILE" UAT -whatIf | ||
env: | ||
PBI_CLIENT_SECRET: ${{ secrets.PBI_CLIENT_SECRET }} | ||
SQL_PWD: ${{ secrets.SQL_PWD }} | ||
|
||
- name: pbi-tools deploy | ||
if: ${{ github.event.inputs.whatIf != 'true' }} | ||
run: | | ||
/app/pbi-tools/pbi-tools.core deploy . "$PROFILE" UAT | ||
env: | ||
PBI_CLIENT_SECRET: ${{ secrets.PBI_CLIENT_SECRET }} | ||
SQL_PWD: ${{ secrets.SQL_PWD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
}, | ||
"refresh": { | ||
"enabled": true, | ||
"skipNewDataset": false, | ||
"skipNewDataset": true, | ||
"type": "Full", | ||
"objects": { | ||
"Date": "Automatic", | ||
|
@@ -50,10 +50,7 @@ | |
"dataset": { | ||
"replaceParameters": true, | ||
"deployEmbeddedReport": true, | ||
"gateway": { | ||
"discoverGateways": true, | ||
"gatewayId": "564ec649-a76b-4a47-b878-6c00c8b77b6f" | ||
} | ||
"setCredentials": false | ||
}, | ||
"sqlScripts": { | ||
"enabled": true, | ||
|
@@ -70,6 +67,7 @@ | |
}, | ||
"parameters": { | ||
"[Version]": "1.0.0", | ||
"WORKSPACE": "Calgary-Demo", | ||
"[SQL Schema]": "PowerBI--{{ENVIRONMENT}}[email protected]", | ||
"SCHEMA_BASE_NAME": "PowerBI--{{ENVIRONMENT}}--Contoso", | ||
"[SQL Server]": "pbitools-demo-01.database.windows.net", | ||
|
@@ -82,11 +80,22 @@ | |
}, | ||
"environments": { | ||
"Development": { | ||
"workspace": "Preview-3", | ||
"workspace": "{{WORKSPACE}}", | ||
"displayName": "{{PBIXPROJ_FOLDER}} [DEV]", | ||
"refresh": { | ||
"objects": {} | ||
"type": "Automatic", | ||
"objects": { | ||
"Info": "Full" | ||
} | ||
}, | ||
"parameters": {} | ||
}, | ||
"UAT": { | ||
"workspace": "{{WORKSPACE}}", | ||
"displayName": "{{PBIXPROJ_FOLDER}} [UAT]" | ||
}, | ||
"Production": { | ||
"workspace": "{{WORKSPACE}}" | ||
} | ||
} | ||
} | ||
|