Skip to content

Commit 73b571f

Browse files
committed
hot fix aws login
1 parent 4438134 commit 73b571f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

buildspec.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ phases:
1313
pre_build:
1414
commands:
1515
- echo Logging into aws ECR...
16-
- 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
16+
- aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin $IMAGE_REGISTRY
1717
build:
1818
commands:
1919
- echo Build started on `date`
2020
- echo Building the Docker image...
2121
- docker build -t $IMAGE_REPO_NAME:$IMAGE_TAG .
22-
- docker tag $IMAGE_REPO_NAME:$IMAGE_TAG $IMAGE_REGISTRY:$IMAGE_TAG
22+
- docker tag $IMAGE_REPO_NAME:$IMAGE_TAG $IMAGE_REGISTRY/$IMAGE_REPO_NAME:$IMAGE_TAG
2323
post_build:
2424
commands:
2525
- echo Build completed on `date`
2626
- echo Pushing the Docker image...
27-
- docker push $IMAGE_REGISTRY:$IMAGE_TAG
28-
- echo Deploying the Docker image...
29-
- ssh -o "StrictHostKeyChecking no" $SERVER_URL $DEPLOY_SCRIPT
27+
- docker push $IMAGE_REGISTRY/$IMAGE_REPO_NAME:$IMAGE_TAG
28+
# - echo Deploying the Docker image...
29+
# - ssh -o "StrictHostKeyChecking no" $SERVER_URL $DEPLOY_SCRIPT
3030

0 commit comments

Comments
 (0)