fix: stop old c4 container before starting renamed games container
The renamed container can't bind port 8080 while the old c4 container still holds it.
This commit is contained in:
@@ -58,5 +58,8 @@ jobs:
|
||||
run: |
|
||||
mkdir -p $DEPLOY_DIR/data
|
||||
|
||||
- name: Stop old c4 container if running
|
||||
run: docker rm -f c4 2>/dev/null || true
|
||||
|
||||
- name: Rebuild and restart
|
||||
run: cd $DEPLOY_DIR && docker compose up -d --build --remove-orphans
|
||||
|
||||
Reference in New Issue
Block a user