Skip to content

Modulize the CI deployment workflows #12

Modulize the CI deployment workflows

Modulize the CI deployment workflows #12

Workflow file for this run

---
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'