Remove: key
This commit is contained in:
parent
074dd2047d
commit
29762d7413
@ -5,11 +5,13 @@ import string
|
||||
import os
|
||||
import boto3
|
||||
from datetime import datetime
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv(".env_prod")
|
||||
|
||||
BASH_FILE = './deploy_images.sh'
|
||||
S3_ENDPOINT = ""
|
||||
S3_ACCESS_KEY = "secret"
|
||||
S3_SECRET_KEY = "secret"
|
||||
S3_ACCESS_KEY = os.getenv('S3_ACCESS_KEY')
|
||||
S3_SECRET_KEY = os.getenv('S3_SECRET_KEY')
|
||||
S3_BUCKET = "ocr-deployment-config"
|
||||
|
||||
class MinioS3Client:
|
||||
@ -77,8 +79,8 @@ def deploy():
|
||||
# Define the variable
|
||||
tag = str(random_hash()[:8])
|
||||
now = datetime.now()
|
||||
# tag = tag + "_" + str(now.strftime("%d%m%y%H%M%S"))
|
||||
tag = "4cae5134_261223123256"
|
||||
tag = tag + "_" + str(now.strftime("%d%m%y%H%M%S"))
|
||||
# tag = "4cae5134_261223123256"
|
||||
print(tag)
|
||||
|
||||
# Execute the Bash script with the variable as a command-line argument
|
||||
|
@ -5,20 +5,20 @@ tag=$1
|
||||
|
||||
echo "[INFO] Tag received from Python: $tag"
|
||||
|
||||
# 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}
|
||||
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}
|
||||
|
||||
# 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}
|
||||
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}
|
||||
|
||||
# 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}
|
||||
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}
|
||||
|
||||
cp ./docker-compose-prod.yml ./docker-compose_${tag}.yml
|
||||
sed -i "s/{{tag}}/$tag/g" ./docker-compose_${tag}.yml
|
||||
|
Loading…
Reference in New Issue
Block a user