Last active
May 30, 2022 07:43
-
-
Save mthierba/9fb927470616c82a630452b00cf07487 to your computer and use it in GitHub Desktop.
Introducing pbi-tools Dataset Deployments
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
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.2_20220525 | |
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 }} | |
- 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 }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment