Skip to content

Commit

Permalink
fix: ssh 명령어에 -T 옵션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-heejin authored Apr 12, 2024
1 parent 8f915d5 commit 14894a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,8 @@ jobs:
key: ${{ secrets.PRIVATE_KEY }}
envs: GITHUB_SHA
script: |
./deploy.sh
ssh -i -T "${{ secrets.PEM_NAME }}" ${{ secrets.WAS_HOST }}@${{ secrets.WAS_IP }}
sudo docker ps
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/docker-team-b-prod
sudo docker run -d -p 8080:8080 ${{ secrets.DOCKER_USERNAME }}/docker-team-b-prod
sudo docker image prune -f

0 comments on commit 14894a1

Please sign in to comment.