This commit is contained in:
@@ -59,7 +59,6 @@ jobs:
|
|||||||
# --- Sync files ---
|
# --- Sync files ---
|
||||||
- name: Sync files to server
|
- name: Sync files to server
|
||||||
run: |
|
run: |
|
||||||
# Use tar to bundle files and send them via SSH in a single connection
|
|
||||||
tar czf - docker-compose.yaml | \
|
tar czf - docker-compose.yaml | \
|
||||||
ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no -o IPQoS=0x00 deploy@alpha.mintel.me \
|
ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no -o IPQoS=0x00 deploy@alpha.mintel.me \
|
||||||
"mkdir -p /home/deploy/sites/mb-grid-solutions.com/ && tar xzf - -C /home/deploy/sites/mb-grid-solutions.com/"
|
"mkdir -p /home/deploy/sites/mb-grid-solutions.com/ && tar xzf - -C /home/deploy/sites/mb-grid-solutions.com/"
|
||||||
@@ -88,10 +87,10 @@ jobs:
|
|||||||
echo 'CONTACT_RECIPIENT=${{ secrets.CONTACT_RECIPIENT }}' >> .env
|
echo 'CONTACT_RECIPIENT=${{ secrets.CONTACT_RECIPIENT }}' >> .env
|
||||||
|
|
||||||
echo 'Pulling latest image...'
|
echo 'Pulling latest image...'
|
||||||
docker compose pull app || echo 'Pull failed - continuing anyway...'
|
docker compose pull || echo 'Pull failed - continuing anyway...'
|
||||||
|
|
||||||
echo 'Force recreating and restarting app container...'
|
echo 'Force recreating and restarting app container...'
|
||||||
docker compose up -d --force-recreate --no-deps app
|
docker compose up -d --force-recreate --no-deps app # ← HIER DER FIX
|
||||||
|
|
||||||
echo 'Pruning old images (keep last 24h)...'
|
echo 'Pruning old images (keep last 24h)...'
|
||||||
docker image prune -f --filter 'until=24h'
|
docker image prune -f --filter 'until=24h'
|
||||||
|
|||||||
Reference in New Issue
Block a user