Skip to content

Instantly share code, notes, and snippets.

@riosengineer
Created August 18, 2024 12:31
Show Gist options
  • Save riosengineer/38ef62e143dbf2a0d8b09b34c3508b0b to your computer and use it in GitHub Desktop.
Save riosengineer/38ef62e143dbf2a0d8b09b34c3508b0b to your computer and use it in GitHub Desktop.
Bicep ACR Module Publish
# publish bicep modules to acr
$version = get-date -Format yyyy-MM-dd
$modules = Get-ChildItem "$env:SYSTEM_ARTIFACTSDIRECTORY" -Include *.bicep -Recurse
foreach ($module in $modules) {
$name = $module.BaseName
bicep publish $module.FullName --target "br:crriosuksbicep.azurecr.io/bicep/modules/${name}:${version}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment