File tree 1 file changed +5
-9
lines changed
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -4,20 +4,16 @@ phases:
4
4
pre_build :
5
5
commands :
6
6
- echo Logging in to Amazon ECR...
7
- - codebuild-breakpoint
8
- - echo aws ecr get-login-password --region $AWS_DEFAULT_REGION
9
- - aws ecr get-login-password --region $AWS_DEFAULT_REGION
10
- - echo docker login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com
11
- - docker version
12
- - aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com
7
+
8
+ - aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin 767503528736.dkr.ecr.us-east-2.amazonaws.com
13
9
build :
14
10
commands :
15
11
- echo Build started on `date`
16
12
- echo Building the Docker image...
17
- - docker build -t $IMAGE_REPO_NAME:$IMAGE_TAG .
18
- - docker tag $IMAGE_REPO_NAME:$IMAGE_TAG $AWS_ACCOUNT_ID .dkr.ecr.$AWS_DEFAULT_REGION .amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG
13
+ - docker build -t nodemodules/tokenizer:latest .
14
+ - docker tag nodemodules/tokenizer:latest 767503528736 .dkr.ecr.us-east-2 .amazonaws.com/nodemodules/tokenizer:latest
19
15
post_build :
20
16
commands :
21
17
- echo Build completed on `date`
22
18
- echo Pushing the Docker image...
23
- - docker push $AWS_ACCOUNT_ID .dkr.ecr.$AWS_DEFAULT_REGION .amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG
19
+ - docker push 767503528736 .dkr.ecr.us-east-2 .amazonaws.com/nodemodules/tokenizer:latest
You can’t perform that action at this time.
0 commit comments