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: Deploy to SagawayDemoACA | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - yosef/deploy-to-aca | |
| paths: | |
| - 'infra/**' | |
| - '.github/workflows/deploy-to-aca.yaml' | |
| permissions: | |
| id-token: write | |
| contents: read | |
| jobs: | |
| deploy-to-aca: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Login to Azure | |
| uses: azure/login@v1 | |
| with: | |
| creds: ${{ secrets.AZURE_CREDENTIALS }} | |
| - name: Login to Azure Container Registry | |
| uses: azure/docker-login@v1 | |
| with: | |
| login-server: sagawayshared.azurecr.io | |
| username: ${{ secrets.ACR_SAGAWAYSHARED_USERNAME }} | |
| password: ${{ secrets.ACR_SAGAWAYSHARED_PASSWORD }} | |
| - name: Deploy to Azure Container Apps | |
| uses: azure/arm-deploy@v1 | |
| with: | |
| resourceGroupName: SagawayDemoACA | |
| template: ./infra/main.bicep | |
| parameters: > | |
| containerRegistry=sagawayshared.azurecr.io | |
| containerRegistryUsername=${{ secrets.ACR_SAGAWAYSHARED_USERNAME }} | |
| containerRegistryPassword=${{ secrets.ACR_SAGAWAYSHARED_PASSWORD }} | |
| - name: Print deployment outputs | |
| run: | | |
| echo "Deployment to SagawayDemoACA completed successfully" |