Skip to content

Commit

Permalink
chore: ssh 접속할 경우 디버그 모드 켜기
Browse files Browse the repository at this point in the history
  • Loading branch information
useonglee committed Feb 23, 2024
1 parent 5aa553e commit d2823b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d2823b6

Please sign in to comment.