Skip to content

Commit

Permalink
Merge pull request #194 from DFE-Digital/add-container-app-update-to-…
Browse files Browse the repository at this point in the history
…test-workflow

Add container app update to the Test workflow
  • Loading branch information
DrizzlyOwl authored Jan 9, 2023
2 parents c26b3f4 + e6f7fac commit 03949f3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build-and-push-image-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 03949f3

Please sign in to comment.