add parameters #209
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
| on: [push] | |
| name: Build Bicep Files | |
| # az ad sp create-for-rbac --name ghaCloudIntegrationTraining --role contributor --scopes /subscriptions/xxx/resourceGroups/CloudIntegrationTraining --sdk-auth | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout code | |
| - uses: actions/checkout@main | |
| # Log into Azure | |
| - uses: azure/login@v1 | |
| with: | |
| #creds: ${{ secrets.AZURE_CREDENTIALS }} | |
| creds: '{"clientId":"${{ secrets.CLIENT_ID }}","clientSecret":"${{ secrets.CLIENT_SECRET }}","subscriptionId":"${{ secrets.SUBSCRIPTION_ID }}","tenantId":"${{ secrets.TENANT_ID }}"}' | |
| enable-AzPSSession: true | |
| # build Bicep file | |
| - name: Azure CLI script file | |
| uses: azure/CLI@v1 | |
| with: | |
| azcliversion: 2.30.0 | |
| inlineScript: 'az bicep build --file "Bicep Samples/appconfiguration.bicep"' | |
| # build Bicep file | |
| - name: Azure CLI script file | |
| uses: azure/CLI@v1 | |
| with: | |
| azcliversion: 2.30.0 | |
| inlineScript: 'az bicep build --file "Bicep Samples/keyvault.bicep"' | |
| # build Bicep file | |
| - name: Azure CLI script file | |
| uses: azure/CLI@v1 | |
| with: | |
| azcliversion: 2.30.0 | |
| inlineScript: 'az bicep build --file "Bicep Samples/apimanagemenbase.bicep"' |