Skip to content

Add reusable workflows #2

Add reusable workflows

Add reusable workflows #2

Workflow file for this run

name: deploy-toy-website-environments
concurrency: toy-company
on:
push:
branches:
- main
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
# Lint the Bicep file
lint:
uses: ./.github/workflows/lint.yml
# Deploy to the test environment.
deploy-test:
uses: ./.github/workflows/deploy.yml
needs: lint
with:
environmentType: Test
resourceGroupName: ToyWebsiteTest
secrets:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID_TEST }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
# Deploy to the production environment.
deploy-production:
uses: ./.github/workflows/deploy.yml
needs: deploy-test
with:
environmentType: Production
resourceGroupName: ToyWebsiteProduction
secrets:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID_PRODUCTION }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}