Skip to content

Commit

Permalink
Merge pull request #8 from Azure/user/anrdesai/fixes
Browse files Browse the repository at this point in the history
Handle sidecar-digest overrides when releasing from an ACR
  • Loading branch information
anantshankar17 authored Nov 22, 2024
2 parents 4bc36e2 + 4edfca5 commit d140bbf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ az cleanroom governance contract vote `
# }

mkdir -p $outDir/deployments
# Set overrides if local registry is to be used for clean room container images.
if ($registry -eq "local") {
# Set overrides if a non-mcr registry is to be used for clean room container images.
if ($registry -ne "mcr") {
$env:AZCLI_CLEANROOM_CONTAINER_REGISTRY_URL = $registryUrl
$env:AZCLI_CLEANROOM_SIDECARS_VERSIONS_DOCUMENT_URL = "${registryUrl}/sidecar-digests:$registryTag"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,8 @@ az cleanroom governance contract vote `
# }

mkdir -p $outDir/deployments
# Set overrides if local registry is to be used for clean room container images.
if ($registry -eq "local") {
# Set overrides if a non-mcr registry is to be used for clean room container images.
if ($registry -ne "mcr") {
$env:AZCLI_CLEANROOM_CONTAINER_REGISTRY_URL = $registryUrl
$env:AZCLI_CLEANROOM_SIDECARS_VERSIONS_DOCUMENT_URL = "${registryUrl}/sidecar-digests:$registryTag"
}
Expand Down
7 changes: 2 additions & 5 deletions test/onebox/multi-party-collab/nginx-hello/run-collab-aci.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@ if ($registry -eq "mcr") {
$usingRegistry = "mcr"
$registryArg = "mcr"
}
else {
$registryArg = "local"
if ($registryUrl -eq "") {
throw "-registryUrl must be specified for acr option."
}
if ($registry -eq "acr") {
$usingRegistry = $registryUrl
$registryArg = "acr"
}

rm -rf $PSScriptRoot/generated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ param
[switch]
$y,

[ValidateSet('mcr', 'local')]
[ValidateSet('mcr', 'local', 'acr')]
[string]$registry = "local",

[string]$registryUrl = "localhost:5001",
Expand Down Expand Up @@ -101,8 +101,8 @@ az cleanroom governance contract vote `


mkdir -p $outDir/deployments
# Set overrides if local registry is to be used for clean room container images.
if ($registry -eq "local") {
# Set overrides if a non-mcr registry is to be used for clean room container images.
if ($registry -ne "mcr") {
$env:AZCLI_CLEANROOM_CONTAINER_REGISTRY_URL = $registryUrl
$env:AZCLI_CLEANROOM_SIDECARS_VERSIONS_DOCUMENT_URL = "${registryUrl}/sidecar-digests:$registryTag"
}
Expand Down

0 comments on commit d140bbf

Please sign in to comment.