modified push acr script
This commit is contained in:
parent
0cc5be64ee
commit
39df8c017b
@ -15,7 +15,7 @@ echo "New directory: $current_directory"
|
|||||||
relative_path="DamageAssesmentApi"
|
relative_path="DamageAssesmentApi"
|
||||||
|
|
||||||
# Combine the current directory with the relative path to get the full path to docker-compose.yml
|
# Combine the current directory with the relative path to get the full path to docker-compose.yml
|
||||||
composeFile="$current_directory/$relative_path/docker-compose.yml"
|
composeFile="$current_directory/DamageAssesmentApi/docker-compose.yml"
|
||||||
|
|
||||||
# List of services to build, tag, and push
|
# List of services to build, tag, and push
|
||||||
services=(
|
services=(
|
||||||
@ -35,7 +35,7 @@ docker login dadeschoolscontainerregistry.azurecr.io -u dadeSchoolsContainerRegi
|
|||||||
# Loop through the services and build, tag, and push
|
# Loop through the services and build, tag, and push
|
||||||
for service in "${services[@]}"; do
|
for service in "${services[@]}"; do
|
||||||
# Build the service
|
# Build the service
|
||||||
docker-compose -f "$composeFile" build "$service"
|
docker-compose -f "$composeFile" build #"$service"
|
||||||
|
|
||||||
# Tag the image for ACR
|
# Tag the image for ACR
|
||||||
docker tag $service "dadeschoolscontainerregistry.azurecr.io/$service"
|
docker tag $service "dadeschoolscontainerregistry.azurecr.io/$service"
|
||||||
|
Loading…
Reference in New Issue
Block a user