Last active
March 1, 2023 17:49
-
-
Save ljtill/03f927a1e2af9e901404730c954e9e59 to your computer and use it in GitHub Desktop.
Provides the ability to deploy to multiple Synapse workspaces
This file contains hidden or 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: "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