#!/bin/bash docker compose -f docker-compose-dev.yml build tag=$1 echo "Tag received from Python: $tag" echo "Building AI image with tag: $tag..." docker tag sidp/cope2n-ai-fi-sbt:latest public.ecr.aws/v4n9y6r8/sidp/cope2n-ai-fi-sbt:${tag} # docker push public.ecr.aws/v4n9y6r8/sidp/cope2n-ai-fi-sbt:${tag} echo "Building BE image with tag: $tag..." docker tag sidp/cope2n-be-fi-sbt:latest public.ecr.aws/v4n9y6r8/sidp/cope2n-be-fi-sbt:${tag} # docker push public.ecr.aws/v4n9y6r8/sidp/cope2n-ai-fi-sbt:${tag} echo "Building BE image with tag: $tag..." docker tag sidp/cope2n-fe-fi-sbt:latest public.ecr.aws/v4n9y6r8/sidp/cope2n-fe-fi-sbt:${tag} # docker push public.ecr.aws/v4n9y6r8/sidp/cope2n-ai-fi-sbt:${tag} cp ./docker-compose.yml ./docker-compose_${tag}.yml sed -i "s/{{tag}}/$tag/g" ./docker-compose_${tag}.yml cp .env .env_${tag}