Skip to content

Commit 359f1bc

Browse files
committed
Adding login to docker hub
1 parent 4027782 commit 359f1bc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

buildspec.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ phases:
66
- echo Logging in to Amazon ECR...
77
- aws --version
88
- $(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email)
9+
- echo Logging in to Docker Hub...
10+
- echo $DOCKERHUB_PASSWORD | docker login --username $DOCKERHUB_USERNAME --password-stdin
911
- IMAGE_NAME="sas"
1012
- REPOSITORY_URI=082101253860.dkr.ecr.eu-west-2.amazonaws.com/sas-live
1113
- IMAGE_TAG=prod_$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | cut -c 1-7)

0 commit comments

Comments
 (0)