Created
August 18, 2024 12:31
-
-
Save riosengineer/38ef62e143dbf2a0d8b09b34c3508b0b to your computer and use it in GitHub Desktop.
Bicep ACR Module Publish
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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