diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3a93688b..0cdb37ac 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,6 +20,7 @@ build_qa: - docker push "$ECR_API_BASE_URL/qa/pender/api:$CI_COMMIT_SHA" only: - develop + - bugfix/ecs-deploy-update deploy_qa: image: python:3.7.7 @@ -32,10 +33,11 @@ deploy_qa: AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION script: - - pip install botocore==1.33.13 - - pip install boto3==1.33.13 - - pip install ecs-deploy==1.14.0 - - pip install awscli==1.29.59 + - pip install urllib3==2.0.6 + - pip install botocore==1.31.62 + - pip install boto3==1.28.62 + - pip install ecs-deploy==1.15.0 + - pip install awscli==1.31.13 - aws ssm get-parameters-by-path --region $AWS_DEFAULT_REGION --path /qa/pender/ --recursive --with-decryption --output text --query "Parameters[].[Name]" | sed -E 's#/qa/pender/##' > env.qa.names - rm -f qa-pender-c.env.args; for NAME in `cat env.qa.names`; do echo -n "-s qa-pender-c $NAME /qa/pender/$NAME " >> qa-pender-c.env.args; done - ecs deploy ecs-qa qa-pender --image qa-pender-c $ECR_API_BASE_URL/qa/pender/api:$CI_COMMIT_SHA --exclusive-env -e qa-pender-c APP pender -e qa-pender-c DEPLOY_ENV qa -e qa-pender-c AWS_REGION $AWS_DEFAULT_REGION --timeout 3600 --exclusive-secrets `cat qa-pender-c.env.args` @@ -44,6 +46,7 @@ deploy_qa: - echo "new Image was deployed $ECR_API_BASE_URL/qa/pender/api:$CI_COMMIT_SHA" only: - develop + - bugfix/ecs-deploy-update build_live: image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest @@ -76,10 +79,11 @@ deploy_live: AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION script: - - pip install botocore==1.33.13 - - pip install boto3==1.33.13 - - pip install ecs-deploy==1.14.0 - - pip install awscli==1.29.59 + - pip install urllib3==2.0.6 + - pip install botocore==1.31.62 + - pip install boto3==1.28.62 + - pip install ecs-deploy==1.15.0 + - pip install awscli==1.31.13 - aws ssm get-parameters-by-path --region $AWS_DEFAULT_REGION --path /live/pender/ --recursive --with-decryption --output text --query "Parameters[].[Name]" | sed -E 's#/live/pender/##' > env.live.names - rm -f live-pender-c.env.args; for NAME in `cat env.live.names`; do echo -n "-s live-pender-c $NAME /live/pender/$NAME " >> live-pender-c.env.args; done - ecs deploy ecs-live live-pender --image live-pender-c $ECR_API_BASE_URL/live/pender/api:$CI_COMMIT_SHA --exclusive-env -e live-pender-c APP pender -e live-pender-c DEPLOY_ENV live -e live-pender-c AWS_REGION $AWS_DEFAULT_REGION --timeout 3600 --exclusive-secrets `cat live-pender-c.env.args`