Modulize the CI deployment workflows #12
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 to AKS | |
on: | |
push: | |
branches: | |
- main | |
- staging | |
# OIDC token being allowed be generated | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
deploy-to-production: | |
uses: ./.github/workflows/deploy-workflow-call.yml | |
with: | |
environment: production | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
deploy-to-staging: | |
uses: ./.github/workflows/deploy-workflow-call.yml | |
with: | |
environment: staging | |
if: github.event_name == 'push' && github.ref == 'refs/heads/staging' | |