Skip to content

chore(deps): bump astro from 6.1.5 to 6.1.10 #120

chore(deps): bump astro from 6.1.5 to 6.1.10

chore(deps): bump astro from 6.1.5 to 6.1.10 #120

name: PR Preview Cleanup
on:
pull_request:
types: [closed]
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: 🔑 Setup SSH
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.VPS_SSH_KEY }}
- name: 🔒 Add VPS to known hosts
run: ssh-keyscan -H ${{ secrets.VPS_HOST }} >> ~/.ssh/known_hosts
- name: 🗑️ Destroy preview environment
env:
DOCKER_HOST: ssh://deploy@${{ secrets.VPS_HOST }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
echo "Destroying preview environment for PR #${PR_NUMBER}..."
docker compose -p pr-${PR_NUMBER} down -v --rmi all --remove-orphans
docker system prune -f