We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b8e580 commit b241300Copy full SHA for b241300
buildspec.yml
@@ -7,7 +7,10 @@ phases:
7
docker: 18
8
pre_build:
9
commands:
10
- - start-dockerd
+ - docker_token=$(aws secretsmanager get-secret-value --secret-id /codebuild/docker/token | jq ".SecretString|fromjson")
11
+ - username=$(echo ${docker_token} | jq ".[0]" | sed 's/"//g')
12
+ - password=$(echo ${docker_token} | jq ".[1]" | sed 's/"//g')
13
+ - docker login --username ${username} --password ${password} > /dev/null 2>&1
14
- echo Logging in to Amazon ECR...
15
- $(aws ecr get-login --no-include-email --region $AWS_DEFAULT_REGION)
16
- pip install -r src/requirements.txt
0 commit comments