Skip to content

Restart

Restart #10

Workflow file for this run

name: Restart
on:
workflow_dispatch
env:
COMPOSE_PROJECT_NAME: kattbot
jobs:
restart:
runs-on: ubuntu-latest
steps:
- name: Restart container
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{secrets.VPS_HOST}}
port: ${{secrets.VPS_PORT}}
username: ${{secrets.KATTBOT_USER}}
key: ${{secrets.KATTBOT_KEY}}
passphrase: ${{secrets.KATTBOT_PASSPHRASE}}
script: docker compose -p $COMPOSE_PROJECT_NAME restart
envs: COMPOSE_PROJECT_NAME