Resetting server docker image #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ssh-action@v1.0.3 | |
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 |