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 7c1eb3f commit b67f13d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,4 @@ jobs:
key: ${{ secrets.PRIVATE_KEY }}
envs: GITHUB_SHA
script: |
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
exit
EOF
ssh -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no ubuntu@${{ secrets.EC2_HOST }} 'bash /home/ubuntu/deploy.sh'

0 comments on commit b67f13d

Please sign in to comment.