Skip to content

Commit

Permalink
Create reset-server-docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mario872 committed Jul 23, 2024
1 parent 5520563 commit bfca0fd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/reset-server-docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Reset Server Docker Image
run-name: Resetting server docker image
on:
push:
paths:
- 'UPDATE'
jobs:
ResetServerDockerImage:
runs-on: ubuntu-latest
steps:
- name: Reset using ssh
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: docker stop class-forge && docker rm class-forge && docker run -d --restart always --name class-forge -p 5000:5000 solderingiron86/better-sentral:latest

0 comments on commit bfca0fd

Please sign in to comment.