Update: Submodule

This commit is contained in:
dx-tan 2024-01-02 12:39:10 +07:00
parent 0ece05c6ea
commit c485aac583
2 changed files with 5 additions and 2 deletions

@ -1 +1 @@
Subproject commit 4caed0d5ee08d1114727effd19bf32beab5263dc Subproject commit 11fb9588df7e6cb03e7a761e3f728f11045bee09

View File

@ -5,6 +5,9 @@ tag=$1
echo "[INFO] Tag received from Python: $tag" echo "[INFO] Tag received from Python: $tag"
echo "[INFO] Updating everything the remote..."
git submodule update --recursive --remote
echo "[INFO] Pushing AI image with tag: $tag..." echo "[INFO] Pushing AI image with tag: $tag..."
docker compose -f docker-compose-dev.yml build cope2n-fi-sbt 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 tag sidp/cope2n-ai-fi-sbt:latest public.ecr.aws/v4n9y6r8/sidp/cope2n-ai-fi-sbt:${tag}
@ -22,4 +25,4 @@ docker push public.ecr.aws/v4n9y6r8/sidp/cope2n-fe-fi-sbt:${tag}
cp ./docker-compose-prod.yml ./docker-compose_${tag}.yml cp ./docker-compose-prod.yml ./docker-compose_${tag}.yml
sed -i "s/{{tag}}/$tag/g" ./docker-compose_${tag}.yml sed -i "s/{{tag}}/$tag/g" ./docker-compose_${tag}.yml
cp .env_prod .env_${tag} cp .env_prod .env_${tag}