Commit 32769a55 authored by Matt Wise's avatar Matt Wise
Browse files

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

login to Docker Hub to prevent rate limiting issues

See merge request !41
parents 22b69385 38e9926b
Pipeline #16773 passed with stages
in 43 minutes and 20 seconds
...@@ -17,6 +17,11 @@ ...@@ -17,6 +17,11 @@
# https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html # https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html
version: 0.2 version: 0.2
env:
secrets-manager:
DOCKER_USERNAME: /osdu/devops/docker_credentials:username
DOCKER_PASSWORD: /osdu/devops/docker_credentials:password
phases: phases:
install: install:
runtime-versions: runtime-versions:
...@@ -56,6 +61,9 @@ phases: ...@@ -56,6 +61,9 @@ phases:
- echo "Building integration testing assemblies and gathering artifacts..." - echo "Building integration testing assemblies and gathering artifacts..."
- ./testing/notification-test-aws/build-aws/prepare-dist.sh - ./testing/notification-test-aws/build-aws/prepare-dist.sh
- echo "Logging into Docker Hub..."
- docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
- echo "Building docker image..." - echo "Building docker image..."
- docker build -f provider/notification-aws/build-aws/Dockerfile -t ${ECR_IMAGE} . - docker build -f provider/notification-aws/build-aws/Dockerfile -t ${ECR_IMAGE} .
- docker tag ${ECR_IMAGE} ${ECR_IMAGE_BRANCH_LATEST} - docker tag ${ECR_IMAGE} ${ECR_IMAGE_BRANCH_LATEST}
......
Supports Markdown
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