Commit 167e4926 authored by Rucha Deshpande's avatar Rucha Deshpande
Browse files

Merge branch 'aws-gl-patch' into 'master'

login to Docker Hub to prevent rate limiting issues

See merge request !51
parents 7bdb9812 8f9679dd
Pipeline #16783 failed with stages
in 74 minutes and 45 seconds
......@@ -17,6 +17,11 @@
# https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html
version: 0.2
env:
secrets-manager:
DOCKER_USERNAME: /osdu/devops/docker_credentials:username
DOCKER_PASSWORD: /osdu/devops/docker_credentials:password
phases:
install:
runtime-versions:
......@@ -65,6 +70,9 @@ phases:
- chmod +x ./testing/schema-test-aws/build-aws/prepare-dist.sh
- ./testing/schema-test-aws/build-aws/prepare-dist.sh
- echo "Logging into Docker Hub..."
- docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
- echo "Building docker image..."
- docker build -f provider/schema-aws/build-aws/Dockerfile -t ${ECR_IMAGE} .
- docker tag ${ECR_IMAGE} ${ECR_IMAGE_BRANCH_LATEST}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment