use azure container registry

This commit is contained in:
Ammar Qaffaf
2024-02-22 02:27:26 +03:00
parent 55bd176880
commit 2a62fd5965

View File

@ -9,9 +9,9 @@ on:
env:
AZURE_WEB_APP_NAME: 'syncrow'
AZURE_WEB_APP_SLOT_NAME: 'dev'
ACR_REGISTRY: 'syncrow.azurecr.io' # Replace with your ACR name
IMAGE_NAME: 'backend' # Replace with your image name
IMAGE_TAG: 'latest' # Consider using dynamic tags, e.g., GitHub SHA
ACR_REGISTRY: 'syncrow.azurecr.io'
IMAGE_NAME: 'backend'
IMAGE_TAG: 'latest'
jobs:
build_and_deploy:
@ -37,6 +37,6 @@ jobs:
run: |
az webapp config container set \
--name ${{ env.AZURE_WEB_APP_NAME }} \
--resource-group YourResourceGroupName \ # Replace with your resource group name
--resource-group syncrow \
--docker-custom-image-name ${{ env.ACR_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} \
--docker-registry-server-url https://${{ env.ACR_REGISTRY }}