Skip to content

Commit

Permalink
feat: ACR retag support for CohMan
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmoore-nc authored Dec 19, 2024
1 parent 4f2d931 commit 81c1818
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .azuredevops/templates/steps/acr-import-retag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ steps:
src_reg_prefix="${SRC_REGISTRY}.azurecr.io/" # omitted when the source registry is in a different subscription
else
[[ "${SRC_REGISTRY}" =~ dev ]] && cmdopt_sub="--subscription ${TF_VAR_HUB_SUBSCRIPTION_ID}"
[[ "${SRC_REGISTRY}" == "acrukscohmandev" ]] && cmdopt_sub="--subscription ${TF_VAR_TARGET_SUBSCRIPTION_ID}"
source_registry_id=$(az acr show --name ${SRC_REGISTRY} ${cmdopt_sub} --query id --output tsv)
cmdopt_reg="--registry ${source_registry_id}" # needed when the source registry is in a different subscription
echo "##[debug] Authenticating with container registry ${DEST_REGISTRY}..."
Expand All @@ -44,6 +45,7 @@ steps:
fi
[[ "${DEST_REGISTRY}" =~ dev ]] && az account set -s ${TF_VAR_HUB_SUBSCRIPTION_ID}
[[ "${DEST_REGISTRY}" == "acrukscohmandev" ]] && az account set -s ${TF_VAR_TARGET_SUBSCRIPTION_ID}
repos=$(az acr repository list --name ${SRC_REGISTRY} --output tsv)
for repo in ${repos}; do
Expand Down

0 comments on commit 81c1818

Please sign in to comment.