From e6f7fac478f795a4e7913f1d959a83e38d63be40 Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Thu, 5 Jan 2023 16:49:32 +0000 Subject: [PATCH] Add container app update to the Test workflow * Updates the container app after the new release has been pushed to ACR --- .github/workflows/build-and-push-image-test.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/build-and-push-image-test.yml b/.github/workflows/build-and-push-image-test.yml index c93194a84..d3b32f788 100644 --- a/.github/workflows/build-and-push-image-test.yml +++ b/.github/workflows/build-and-push-image-test.yml @@ -56,3 +56,20 @@ jobs: build-args: ASPNET_IMAGE_TAG=6.0.9-bullseye-slim-amd64 push: true tags: ${{ steps.prepare-tags.outputs.tags }} + + - name: Azure login with ACA credentials + uses: azure/login@v1 + with: + creds: ${{ secrets.TEST_AZURE_ACA_CREDENTIALS }} + + - name: Update Azure Container Apps Revision + uses: azure/CLI@v1 + with: + azcliversion: 2.40.0 + inlineScript: | + az config set extension.use_dynamic_install=yes_without_prompt + az containerapp update \ + --name ${{ secrets.TEST_ACA_CONTAINERAPP_NAME }} \ + --resource-group ${{ secrets.TEST_ACA_RESOURCE_GROUP }} \ + --image ${{ secrets.TEST_ACR_URL }}/aca-app:${{ steps.prepare-tags.outputs.deploy-version }} \ + --output none