From 516c744a72bff067dc8f5cdd3dcf72fceeb177da Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Mon, 18 Nov 2024 14:11:31 +0100 Subject: [PATCH] first attempt on creating a new revision from the newly created image --- .github/workflows/app.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml index d779751..6a8f3f0 100644 --- a/.github/workflows/app.yml +++ b/.github/workflows/app.yml @@ -66,3 +66,23 @@ jobs: run: | docker push ${{ secrets.ACR_LOGIN_SERVER }}/$IMAGE_NAME:${{needs.versionize.outputs.semver}} docker push ${{ secrets.ACR_LOGIN_SERVER }}/$IMAGE_NAME:latest + + create_new_revision: + name: Create & Activate new revision + if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') + runs-on: ubuntu-latest + needs: build_and_publish + steps: + - name: Az CLI login + uses: azure/login@v2 + with: + client-id: ${{ secrets.CALQUE_PRD_CLIENT_ID }} + tenant-id: ${{ secrets.CALQUE_PRD_TENANT_ID }} + subscription-id: ${{ secrets.CALQUE_PRD_SUBSCRIPTION_ID }} + + - name: Deploy bicep + uses: Azure/cli@v2 + with: + azcliversion: 2.66.0 + inlineScript: | + az containerapp update --name calque-app --resource-group rg-euw-prd-calque --image ${{ secrets.ACR_LOGIN_SERVER }}/$IMAGE_NAME:${{needs.versionize.outputs.semver}}