modified push acr script

This commit is contained in:
Santhosh S 2023-10-17 15:27:44 -04:00
parent fa68071d64
commit 0cc5be64ee

View File

@ -35,10 +35,10 @@ docker login dadeschoolscontainerregistry.azurecr.io -u dadeSchoolsContainerRegi
# Loop through the services and build, tag, and push
for service in "${services[@]}"; do
# Build the service
docker-compose -f "$composeFile" build # "$service"
docker-compose -f "$composeFile" build "$service"
# Tag the image for ACR
docker tag "$service" "dadeschoolscontainerregistry.azurecr.io/$service"
docker tag $service "dadeschoolscontainerregistry.azurecr.io/$service"
# Push the image to ACR
docker push "dadeschoolscontainerregistry.azurecr.io/$service"
@ -49,5 +49,5 @@ current_directory="$(pwd)"
echo "Current directory: $current_directory"
# Wait for a keypress
echo "Press any key to continue..."
read -n 1 -s -r -p ""
#echo "Press any key to continue..."
#read -n 1 -s -r -p ""