Initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
name: Restart Server
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 4 * * *'
|
||||
|
||||
jobs:
|
||||
restart-server:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Restart container
|
||||
uses: appleboy/ssh-action@v1.2.0
|
||||
with:
|
||||
host: ${{ secrets.host }}
|
||||
username: ${{ secrets.USERNAME }}
|
||||
key: ${{ secrets.KEY }}
|
||||
script: |
|
||||
cd minecraft-server-example-folder
|
||||
docker compose restart
|
||||
Reference in New Issue
Block a user