Skip to content

Commit

Permalink
Add updated scripts (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfaurskov authored Mar 29, 2022
1 parent afad38e commit 4748322
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 4748322

Please sign in to comment.