Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hysong4u authored Oct 5, 2024
1 parent 3ad52ff commit e61aefe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ jobs:
chmod 600 private_key.pem
ssh -T -o StrictHostKeyChecking=no -i private_key.pem ubuntu@$SERVER_ADDRESS << 'EOF'
docker pull hysong4u/hackdive:latest #컨테이너명
existing_container_id=$(sudo docker ps -q --filter "publish=8088") #포트번호
existing_container_id=$(sudo docker ps -q --filter "publish=443") #포트번호
[ -n "$existing_container_id" ] && sudo docker stop $existing_container_id && sudo docker rm $existing_container_id
sudo docker image prune -f
docker run -d -p 8088:8088 hysong4u/hackdive:latest #컨테이너명&포트번호
docker run -d -p 443:443 hysong4u/hackdive:latest #컨테이너명&포트번호
EOF
# docker 권한 문제 발생시
# sudo chmod 660 /var/run/docker.sock
Expand Down

0 comments on commit e61aefe

Please sign in to comment.