Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ACR publish script #197

Merged
merged 1 commit into from
Mar 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/scripts/createRGandcallBicep.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

$azureResourceGroup='rsg-private-bicep-registry'
$azureLocation='EastUs'
$azureLocation='eastus'

#Create resource group
New-AzResourceGroup -Name $azureResourceGroup -Location $azureLocation
Expand All @@ -15,7 +15,7 @@ $azureContainerRegistryName=$deploymentOutput.Outputs.outLoginServer.Value
#Leverage Powershell too loop through all bicep modules within the repository
#convert the filename to lower case as Azure Container Registry doesnt support Camelcase
#Leverage az bicep to publish module to Azure Container Registry created above
$files = $(Get-ChildItem("$pwd/infra-as-code/bicep/modules/*/*.bicep"))
$files = $(Get-ChildItem -path "$pwd/infra-as-code/bicep/modules" -Recurse -Include *.bicep -exclude *orch-hubSpoke.bicep)

foreach ($file in $files)
{
Expand Down
4 changes: 2 additions & 2 deletions docs/scripts/createRGandcallBicep.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

azureResourceGroup='rsg-private-bicep-registry'
azureLocation='EastUs'
azureLocation='eastus'

#Create resource group
az group create --name $azureResourceGroup --location $azureLocation
Expand All @@ -16,7 +16,7 @@ azureContainerRegistryName=$(az deployment group show -n deployACR -g $azureReso
#Leverage Bash utilities too loop through all bicep modules within the repository
#convert the filename to lower case as Azure Container Registry doesnt support Camelcase
#Leverage az bicep to publish module to Azure Container Registry created above
for file in infra-as-code/bicep/modules/*/*.bicep
for file in $(find ./infra-as-code/bicep/modules -type f -name "*.bicep" ! -path "./infra-as-code/bicep/modules/unstable*")
do
f=$(echo "${file##*/}");
filename=$(echo $f| cut -d'.' -f 1| tr '[:upper:]' '[:lower:]')
Expand Down