Skip to content

Commit 7703ef0

Browse files
committed
Restart container if stopped
1 parent a458863 commit 7703ef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ jobs:
5959
key: ${{ secrets.OMEGA_SSH_KEY }}
6060
known_hosts: ${{ secrets.KNOWN_HOSTS }}
6161
- name: Deploy with docker
62-
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} -p ${{ secrets.SSH_PORT }} "docker stop bethanyj28_battlesnek; docker pull ghcr.io/bethanyj28/battlesnek:latest; docker run --name bethanyj28_battlesnek --rm -d --network=proxy ghcr.io/bethanyj28/battlesnek:latest"
62+
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} -p ${{ secrets.SSH_PORT }} "docker stop bethanyj28_battlesnek; docker pull ghcr.io/bethanyj28/battlesnek:latest; docker run --name bethanyj28_battlesnek --restart unless-stopped --rm -d --network=proxy ghcr.io/bethanyj28/battlesnek:latest"

0 commit comments

Comments
 (0)