This commit is contained in:
@@ -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 "bash -s" << 'EOF'
|
||||
ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no -o IPQoS=0x00 deploy@alpha.mintel.me "
|
||||
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
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user