Skip to content

Commit

Permalink
Update gradle-prod.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sanggae4133 authored May 8, 2024
1 parent 199ea7c commit bc995e0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/gradle-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,12 @@ jobs:
# OSRM 실행
- name: Run OSRM server
run: sudo docker run -t -i -p 5000:5000 -v "/home/ubuntu/osrm:/data" osrm/osrm-backend osrm-routed --algorithm mld /data/south-korea-latest.osrm
shell: bash
uses: appleboy/ssh-action@master
with:
key: ${{ secrets.EC2_KEY_PROD }}
host: ${{ secrets.EC2_HOST_PROD }}
username: ${{ secrets.EC2_USER_PROD }}
script: |
sudo fuser -k -n tcp 5000
sleep 15
sudo docker run -t -i -p 5000:5000 -v "/home/ubuntu/osrm:/data" osrm/osrm-backend osrm-routed --algorithm mld /data/south-korea-latest.osrm

0 comments on commit bc995e0

Please sign in to comment.