Azure Container Apps Deploy #30
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: Azure Container Apps Deploy | |
on: | |
workflow_run: | |
workflows: | |
- Docker-Build | |
types: | |
- completed | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- uses: actions/checkout@v3 | |
# - name: az version | |
# uses: azure/[email protected] | |
# with: | |
# azcliversion: latest | |
# inlineScript: | | |
# echo $(az --version) | |
- name: Log in to Azure | |
uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
# - name: Build and deploy Container App | |
# uses: azure/container-apps-deploy-action@v0 | |
# with: | |
# appSourcePath: ${{ github.workspace }}/ | |
# acrName: ${{ secrets.CONTAINER_REG }} | |
# containerAppName: ${{ secrets.APP_NAME }} | |
# resourceGroup: ${{ secrets.RESOURCE_GROUP }} | |
- name: Build and deploy Container App | |
uses: azure/container-apps-deploy-action@v0 | |
with: | |
acrName: ${{ secrets.DOCKER_USER }} | |
containerAppName: ${{ secrets.APP_NAME }} | |
resourceGroup: ${{ secrets.RESOURCE_GROUP }} | |
imageToDeploy: ${{ secrets.DOCKER_USER }}.azurecr.io/review-api:${{ github.sha }} |