File tree Expand file tree Collapse file tree
.pipelines/containerSourceData/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ function finalize {
3434 echo " $CONTAINER_IMAGE_NAME_FINAL " >> " $OUTPUT_DIR /PublishedContainers-$IMAGE .txt"
3535
3636 # Publish the image to ACR
37- publish_to_acr
37+ publish_to_acr " $CONTAINER_IMAGE_NAME_FINAL "
3838
3939 # Generate SBOM
4040 generate_image_sbom
@@ -49,6 +49,8 @@ function oras_attach {
4949}
5050
5151function publish_to_acr {
52+ local container=$1
53+
5254 if [[ ! " $PUBLISH_TO_ACR " =~ [Tt]rue ]]; then
5355 echo " +++ Skip publishing to ACR"
5456 return
@@ -61,9 +63,9 @@ function publish_to_acr {
6163 --username " 00000000-0000-0000-0000-000000000000" \
6264 --password " $oras_access_token "
6365
64- echo " +++ Publish container $CONTAINER_IMAGE_NAME_FINAL "
65- docker image push " $CONTAINER_IMAGE_NAME_FINAL "
66- oras_attach " $CONTAINER_IMAGE_NAME_FINAL "
66+ echo " +++ Publish container $container "
67+ docker image push " $container "
68+ oras_attach " $container "
6769}
6870
6971function generate_image_sbom {
You can’t perform that action at this time.
0 commit comments