first attempt on creating a new revision from the newly created image

This commit is contained in:
Chris Kruining 2024-11-18 14:11:31 +01:00
parent 7120a76589
commit 516c744a72
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2

View file

@ -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}}