This commit is contained in:
2026-01-21 11:30:47 +01:00
parent b2791fd19b
commit 7d3b8f4af9

View File

@@ -67,14 +67,14 @@ jobs:
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_PASS: ${{ secrets.REGISTRY_PASS }}
run: |
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 "bash -s" << 'EOF'
set -ex
echo 'Logging in to registry on server...'
echo '$REGISTRY_PASS' | docker login registry.infra.mintel.me -u '$REGISTRY_USER' --password-stdin
echo "Logging in to registry on server..."
echo "$REGISTRY_PASS" | docker login registry.infra.mintel.me -u "$REGISTRY_USER" --password-stdin
cd /home/deploy/sites/mb-grid-solutions
echo 'Pulling latest images...'
echo "Pulling latest images..."
# Try both .yml and .yaml
if [ -f docker-compose.yml ]; then
docker compose pull
@@ -83,11 +83,11 @@ jobs:
docker compose -f docker-compose.yaml pull
docker compose -f docker-compose.yaml up -d --force-recreate
else
echo 'No docker-compose file found!'
echo "No docker-compose file found!"
ls -la
exit 1
fi
echo 'Pruning old images...'
echo "Pruning old images..."
docker image prune -f
"
EOF