Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@
"name": "AGENT_IMAGE_FULL_PATH",
"value": "__ACR_NAME__/public/azuremonitor/containerinsights/__AGENT_RELEASE__:__AGENT_RELEASE____AGENT_IMAGE_TAG_SUFFIX__"
},
{
"name": "CDPX_ACR",
"value": "__CDPX_LINUX_ACR__"
},
{
"name": "CDPX_REGISTRY",
"value": "__CDPX_LINUX_REGISTRY__"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@
"name": "AGENT_IMAGE_FULL_PATH",
"value": "__ACR_NAME__/public/azuremonitor/containerinsights/__AGENT_RELEASE__:win-__AGENT_RELEASE____AGENT_IMAGE_TAG_SUFFIX__"
},
{
"name": "CDPX_ACR",
"value": "__CDPX_WINDOWS_ACR__"
},
{
"name": "CDPX_REGISTRY",
"value": "__CDPX_WINDOWS_REGISTRY__"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@
"find": "__MANAGED_IDENTITY__",
"replaceWith": "$(ManagedIdentity)"
},
{
"find": "__CDPX_LINUX_ACR__",
"replaceWith": "$(CDPXLinuxACR)"
},
{
"find": "__CDPX_WINDOWS_ACR__",
"replaceWith": "$(CDPXWindowsACR)"
},
{
"find": "__CDPX_LINUX_REGISTRY__",
"replaceWith": "$(CDPXLinuxRegistry)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ if [ -z $AGENT_IMAGE_FULL_PATH ]; then
exit 1
fi

if [ -z $CDPX_ACR ]; then
echo "-e error value of CDPX_ACR shouldn't be empty. check release variables"
exit 1
fi

if [ -z $CDPX_TAG ]; then
echo "-e error value of CDPX_TAG shouldn't be empty. check release variables"
exit 1
Expand Down Expand Up @@ -55,7 +50,7 @@ else
fi

echo "Pushing ${AGENT_IMAGE_FULL_PATH} to ${ACR_NAME}"
az acr import --name $ACR_NAME --registry $CDPX_REGISTRY --source ${CDPX_ACR}/official/${CDPX_REPO_NAME}:${CDPX_TAG} --image $AGENT_IMAGE_FULL_PATH
az acr import --name $ACR_NAME --registry $CDPX_REGISTRY --source official/${CDPX_REPO_NAME}:${CDPX_TAG} --image $AGENT_IMAGE_FULL_PATH
if [ $? -eq 0 ]; then
echo "Retagged and pushed image successfully"
else
Expand Down