Skip to content

Commit

Permalink
fix: 명령어가 한 번에 실행되도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-heejin authored Apr 12, 2024
1 parent ee16b5c commit ba018fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ jobs:
key: ${{ secrets.PRIVATE_KEY }}
envs: GITHUB_SHA
script: |
ssh -tt -i "${{ secrets.PEM_NAME }}" ${{ secrets.WAS_HOST }}@${{ secrets.WAS_IP }}
ssh -tt -i "${{ secrets.PEM_NAME }}" ${{ secrets.WAS_HOST }}@${{ secrets.WAS_IP }}" << 'EOF'
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
exit
EOF

0 comments on commit ba018fc

Please sign in to comment.