Master commit next.

This commit is contained in:
clive
2024-05-07 00:01:34 +10:00
parent 8dafb6c804
commit 11edae272f

View File

@@ -33,7 +33,10 @@ jobs:
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
script: |
docker pull registry.rokoh.com/rokoh:latest
if docker ps -a --format '{{.Names}}' | grep -q rokoh; then
docker stop rokoh || true
docker rm rokoh || true
docker image rm rokoh || true
fi
docker pull registry.rokoh.com/rokoh:latest
docker run -d -p 2000:80 --restart=always --name rokoh registry.rokoh.com/rokoh