chore(deps): bump astro from 6.1.5 to 6.1.10 #120
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |