Skip to content

Commit

Permalink
Faster deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoff97 committed Sep 30, 2024
1 parent bcb7f99 commit 14ac77c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,5 @@ jobs:
SSH_KEY: ${{ secrets.SSHKEY }}
SSH_HOST: ${{ secrets.HOST }}

- name: Stop the server
run: ssh prod 'docker stop hoff97hikeandfly && docker rm hoff97hikeandfly && docker image rm hoff97/hikeandfly'

- name: Start the server
run: ssh prod 'docker pull hoff97/hikeandfly:latest && docker run -d --restart always --name hoff97hikeandfly -v /root/data:/app/data -p 8080:8080 hoff97/hikeandfly:latest'
- name: Stop and start the server
run: ssh prod 'docker pull hoff97/hikeandfly:latest && docker stop hoff97hikeandfly && docker rm hoff97hikeandfly && docker image prune && docker run -d --restart always --name hoff97hikeandfly -v /root/data:/app/data -p 8080:8080 hoff97/hikeandfly:latest'

0 comments on commit 14ac77c

Please sign in to comment.