Skip to content

Commit

Permalink
Update version pins for Python dependencies to fix deployments. (#1680)
Browse files Browse the repository at this point in the history
* Update version pins for awscli, boto3, botocore, and ecs-deploy.
  • Loading branch information
sonoransun authored Oct 4, 2023
1 parent 99a6aa9 commit 68fdd42
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ build_qa:

script:
- apk add --no-cache curl python3 py3-pip
- pip install awscli==1.18.194
- pip install awscli==1.29.59
- $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION)
- docker build -f production/Dockerfile -t "$ECR_API_BASE_URL/qa/check/api:$CI_COMMIT_SHA" .
- docker push "$ECR_API_BASE_URL/qa/check/api:$CI_COMMIT_SHA"
Expand All @@ -38,10 +38,10 @@ deploy_qa:
GITHUB_TOKEN: $GITHUB_TOKEN
script:
- apk add --no-cache curl python3 py3-pip git
- pip install awscli==1.18.194
- pip install botocore==1.17.47
- pip install boto3==1.14.47
- pip install ecs-deploy==1.11.0
- pip install botocore==1.31.58
- pip install boto3==1.28.58
- pip install ecs-deploy==1.14.0
- pip install awscli==1.29.59
- alias aws='docker run -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_DEFAULT_REGION --rm amazon/aws-cli'
- aws ssm get-parameters-by-path --region $AWS_DEFAULT_REGION --path /qa/check-api/ --recursive --with-decryption --output text --query "Parameters[].[Name]" | sed -E 's#/qa/check-api/##' > env.qa.names
- for NAME in `cat env.qa.names`; do echo -n "-s qa-check-api-migration $NAME /qa/check-api/$NAME " >> qa-check-api-migration.env.args; done
Expand Down Expand Up @@ -70,7 +70,7 @@ build_batch:
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
script:
- apk add --no-cache curl python3 py3-pip git
- pip install awscli==1.18.194
- pip install awscli==1.29.59
- $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION)
- docker build -f production/Dockerfile -t "$ECR_API_BASE_URL/batch/check/api:$CI_COMMIT_SHA" .
- docker push "$ECR_API_BASE_URL/batch/check/api:$CI_COMMIT_SHA"
Expand All @@ -90,7 +90,7 @@ build_live:
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
script:
- apk add --no-cache curl python3 py3-pip git
- pip install awscli==1.18.194
- pip install awscli==1.29.59
- $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION)
- docker build -f production/Dockerfile -t "$ECR_API_BASE_URL/live/check/api:$CI_COMMIT_SHA" .
- docker push "$ECR_API_BASE_URL/live/check/api:$CI_COMMIT_SHA"
Expand All @@ -113,10 +113,10 @@ deploy_live:
GITHUB_TOKEN: $GITHUB_TOKEN
script:
- apk add --no-cache curl python3 py3-pip git
- pip install awscli==1.18.194
- pip install botocore==1.17.47
- pip install boto3==1.14.47
- pip install ecs-deploy==1.11.0
- pip install botocore==1.31.58
- pip install boto3==1.28.58
- pip install ecs-deploy==1.14.0
- pip install awscli==1.29.59
- alias aws='docker run -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_DEFAULT_REGION --rm amazon/aws-cli'
- aws ssm get-parameters-by-path --region $AWS_DEFAULT_REGION --path /live/check-api/ --recursive --with-decryption --output text --query "Parameters[].[Name]" | sed -E 's#/live/check-api/##' > env.live.names
- for NAME in `cat env.live.names`; do echo -n "-s live-check-api-migration $NAME /live/check-api/$NAME " >> live-check-api-migration.env.args; done
Expand Down

0 comments on commit 68fdd42

Please sign in to comment.