Skip to content
Snippets Groups Projects
Commit 1eb362f0 authored by Wyatt Nielsen's avatar Wyatt Nielsen Committed by Rucha Deshpande
Browse files

login to Docker Hub to prevent rate limiting issues

parent 9858c36e
No related branches found
No related tags found
1 merge request!80login to Docker Hub to prevent rate limiting issues
Pipeline #16762 passed with warnings
......@@ -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:
......@@ -63,6 +68,9 @@ phases:
- echo "Building integration testing assemblies and gathering artifacts..."
- ./testing/legal-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/legal-aws/build-aws/Dockerfile -t ${ECR_IMAGE} .
- docker tag ${ECR_IMAGE} ${ECR_IMAGE_BRANCH_LATEST}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment