File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments