diff --git a/azure.yaml b/azure.yaml index 6a4782d..142605e 100644 --- a/azure.yaml +++ b/azure.yaml @@ -12,7 +12,7 @@ hooks: shell: sh continueOnError: false interactive: true - run: infra/hooks/postprovision.sh + run: chmod +x infra/hooks/postprovision.sh windows: shell: pwsh continueOnError: false diff --git a/infra/hooks/postprovision.ps1 b/infra/hooks/postprovision.ps1 index da7c166..a61e81d 100644 --- a/infra/hooks/postprovision.ps1 +++ b/infra/hooks/postprovision.ps1 @@ -1,5 +1,6 @@ #!/usr/bin/env pwsh -Write-Output "Building contosochatapi:latest..." +Write-Output "#### Building contosochatapi:latest...####" + az acr build --subscription $env:AZURE_SUBSCRIPTION_ID --registry $env:AZURE_CONTAINER_REGISTRY_NAME --image contosochatapi:latest ./src/ContosoChatAPI/ContosoChatAPI/ $image_name = $env:AZURE_CONTAINER_REGISTRY_NAME + '.azurecr.io/contosochatapi:latest' \ No newline at end of file diff --git a/infra/hooks/postprovision.sh b/infra/hooks/postprovision.sh old mode 100644 new mode 100755 index 12c916c..3e33ac6 --- a/infra/hooks/postprovision.sh +++ b/infra/hooks/postprovision.sh @@ -1,5 +1,6 @@ #!/bin/bash -echo "Building contosochatapi:latest..." +echo "#### Building contosochatapi:latest... ####" + az acr build --subscription ${AZURE_SUBSCRIPTION_ID} --registry ${AZURE_CONTAINER_REGISTRY_NAME} --image contosochatapi:latest ./src/ContosoChatAPI/ContosoChatAPI image_name="${AZURE_CONTAINER_REGISTRY_NAME}.azurecr.io/contosochatapi:latest" \ No newline at end of file