Skip to content

Commit

Permalink
Merge pull request #1 from anfibiacreativa/configure-azd-services
Browse files Browse the repository at this point in the history
fix permissions in script run
  • Loading branch information
kristenwomack authored May 17, 2024
2 parents eaa5f2b + 5e3ef27 commit 94b01d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion infra/hooks/postprovision.ps1
Original file line number Diff line number Diff line change
@@ -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'
3 changes: 2 additions & 1 deletion infra/hooks/postprovision.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 94b01d2

Please sign in to comment.