Skip to content

Commit

Permalink
chore(ci): Update app redeployment
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Jan 3, 2025
1 parent d583a46 commit 18cf765
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 924 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ jobs:
env:
API_CONTAINER: ${{ vars.API_CONTAINER }}
API_CONTAINER_RG: ${{ vars.API_CONTAINER_RG }}
ACR_REGISTRY_URL: ${{ vars.ACR_REGISTRY_URL }}
REPOSITORY_NAME: api
with:
azcliversion: latest
inlineScript: |
az container restart --name $API_CONTAINER --resource-group $API_CONTAINER_RG
az containerapp update \
--name $API_CONTAINER \
--resource-group $API_CONTAINER_RG \
--image $ACR_REGISTRY_URL/$REPOSITORY_NAME:latest
7 changes: 6 additions & 1 deletion .github/workflows/deploy-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ jobs:
env:
WEB_CONTAINER: ${{ vars.WEB_CONTAINER }}
WEB_CONTAINER_RG: ${{ vars.WEB_CONTAINER_RG }}
ACR_REGISTRY_URL: ${{ vars.ACR_REGISTRY_URL }}
REPOSITORY_NAME: web
with:
azcliversion: latest
inlineScript: |
az container restart --name $WEB_CONTAINER --resource-group $WEB_CONTAINER_RG
az containerapp update \
--name $WEB_CONTAINER \
--resource-group $WEB_CONTAINER_RG \
--image $ACR_REGISTRY_URL/$REPOSITORY_NAME:latest
Loading

0 comments on commit 18cf765

Please sign in to comment.