Skip to content

Start release server #28

Start release server

Start release server #28

name: Start release server
on:
workflow_run:
workflows:
- "Docker release image publisher"
types:
- completed
jobs:
server_start:
name: start release server
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
script: |
docker pull samillmu/luffy:latest
docker ps -aq | xargs docker stop | xargs docker rm
docker run -d -p 8080:8080 samillmu/luffy:latest