diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index d14725f4..9b9a02fe 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -72,9 +72,9 @@ jobs: IMAGE_TAG: ${{ github.sha }} EC2_IP: ${{ secrets.EC2_IP_ADDRESS }} run: | - echo "${{ secrets.EC2_SSH_PRIVATE_KEY }}" > linker.pem - chmod 600 linker.pem - ssh -i linker.pem -o StrictHostKeyChecking=no ubuntu@$EC2_IP " + echo "${{ secrets.EC2_SSH_PRIVATE_KEY }}" > private_key.pem + chmod 600 private_key.pem + ssh -v -i private_key.pem -o StrictHostKeyChecking=no ubuntu@$EC2_IP " aws ecr get-login-password --region ap-northeast-2 | sudo docker login --username AWS --password-stdin 903755389667.dkr.ecr.ap-northeast-2.amazonaws.com/linker && sudo docker container rm -f $(sudo docker container ls -a --quiet)