Skip to content

Instantly share code, notes, and snippets.

@ljtill
Last active March 1, 2023 17:49
Show Gist options
  • Save ljtill/03f927a1e2af9e901404730c954e9e59 to your computer and use it in GitHub Desktop.
Save ljtill/03f927a1e2af9e901404730c954e9e59 to your computer and use it in GitHub Desktop.
Provides the ability to deploy to multiple Synapse workspaces
name: "Workspace Deployment"
on:
push:
branches: [ release ]
permissions:
id-token: write
contents: read
jobs:
release-development:
name: "Release (Development)"
runs-on: ubuntu-latest
environment: development
steps:
- uses: actions/checkout@v3
- uses: azure/[email protected]
with:
targetWorkspaceName: ''
templateFile: './{workspaceName}/TemplateForWorkspace.json'
parametersFile: './{workspaceName}/TemplateParametersForWorkspace.json'
environment: 'Azure Public'
resourceGroup: 'Synapse'
clientId: ${{ secrets.CLIENT_ID }}
clientSecret: ${{ secrets.CLIENT_SECRET }}
subscriptionId: ${{ secrets.SUBSCRIPTION_ID }}
tenantId: ${{ secrets.TENANT_ID }}
deleteArtifactsNotInTemplate: 'true'
managedIdentity: 'false'
operation: 'deploy'
release-production:
name: "Release (Production)"
runs-on: ubuntu-latest
environment: production
needs: release-development
steps:
- uses: actions/checkout@v3
- uses: azure/[email protected]
with:
targetWorkspaceName: ''
templateFile: './{workspaceName}/TemplateForWorkspace.json'
parametersFile: './{workspaceName}/TemplateParametersForWorkspace.json'
environment: 'Azure Public'
resourceGroup: 'Synapse'
clientId: ${{ secrets.CLIENT_ID }}
clientSecret: ${{ secrets.CLIENT_SECRET }}
subscriptionId: ${{ secrets.SUBSCRIPTION_ID }}
tenantId: ${{ secrets.TENANT_ID }}
deleteArtifactsNotInTemplate: 'true'
managedIdentity: 'false'
operation: 'deploy'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment