Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aniketpr01 committed Jul 30, 2024
1 parent a599a33 commit afc38c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
DOCKER_IMAGE: $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
run: |
ssh -i ~/.ssh/id_rsa $EC2_USER@$EC2_PUBLIC_IP << 'EOF'
aws ecr get-login-password --region us-east-1 | sudo docker login --username AWS --password-stdin 750262681899.dkr.ecr.us-east-1.amazonaws.com
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 750262681899.dkr.ecr.us-east-1.amazonaws.com
docker pull ${{ env.DOCKER_IMAGE }}
docker ps -q | xargs -r docker stop &&
docker ps -aq | xargs -r docker rm &&
Expand Down

0 comments on commit afc38c8

Please sign in to comment.