sbt-idp/deploy_images.sh

26 lines
1.0 KiB
Bash
Raw Normal View History

2023-12-21 05:55:14 +00:00
#!/bin/bash
2023-12-26 07:10:59 +00:00
set -e
2023-12-21 05:55:14 +00:00
tag=$1
2023-12-22 03:54:04 +00:00
echo "[INFO] Tag received from Python: $tag"
2023-12-21 05:55:14 +00:00
2023-12-26 07:10:59 +00:00
# echo "[INFO] Pushing AI image with tag: $tag..."
# docker compose -f docker-compose-dev.yml build cope2n-fi-sbt
# 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}
2023-12-21 05:55:14 +00:00
2023-12-26 07:10:59 +00:00
# echo "[INFO] Pushing BE image with tag: $tag..."
# docker compose -f docker-compose-dev.yml build be-ctel-sbt
# 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-be-fi-sbt:${tag}
2023-12-21 05:55:14 +00:00
2023-12-26 07:10:59 +00:00
# echo "[INFO] Pushing FE image with tag: $tag..."
# docker compose -f docker-compose-dev.yml build fe-sbt
# 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-fe-fi-sbt:${tag}
2023-12-21 05:55:14 +00:00
2023-12-25 07:14:05 +00:00
cp ./docker-compose-prod.yml ./docker-compose_${tag}.yml
2023-12-21 05:55:14 +00:00
sed -i "s/{{tag}}/$tag/g" ./docker-compose_${tag}.yml
2023-12-25 03:32:09 +00:00
cp .env_prod .env_${tag}