Skip to content

Commit

Permalink
Manifest updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mthierba committed Nov 28, 2023
1 parent fae42de commit 6c27b42
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Deploy-DEV
on:
pull_request:
branches:
- 'release/*'
- 'Release/*'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
environment: Development
container:
image: ghcr.io/pbi-tools/pbi-tools-core:1.0.0-rc.2_preview.3
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
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/deploy-production.yml
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 }}
50 changes: 50 additions & 0 deletions .github/workflows/deploy-uat.yml
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 }}
23 changes: 16 additions & 7 deletions .pbixproj.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"refresh": {
"enabled": true,
"skipNewDataset": false,
"skipNewDataset": true,
"type": "Full",
"objects": {
"Date": "Automatic",
Expand Down Expand Up @@ -50,10 +50,7 @@
"dataset": {
"replaceParameters": true,
"deployEmbeddedReport": true,
"gateway": {
"discoverGateways": true,
"gatewayId": "564ec649-a76b-4a47-b878-6c00c8b77b6f"
}
"setCredentials": false
},
"sqlScripts": {
"enabled": true,
Expand All @@ -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",
Expand All @@ -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}}"
}
}
}
Expand Down

0 comments on commit 6c27b42

Please sign in to comment.