Download .github/workflows/deploy.yml from firebird-technologies/blog2video-cpu: direct link, hf CLI and curl.
- Browser
- Download file 643 Bytes
-
https://huggingface.co/spaces/firebird-technologies/blog2video-cpu/resolve/main/.github/workflows/deploy.yml
- Command line
-
hf download hf://spaces/firebird-technologies/blog2video-cpu/.github/workflows/deploy.yml
-
curl -L -o deploy.yml https://huggingface.co/spaces/firebird-technologies/blog2video-cpu/resolve/main/.github/workflows/deploy.yml
643 Bytes
| name: Deploy to Droplet | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy via SSH | |
| uses: appleboy/ssh-action@v1 | |
| with: | |
| host: ${{ secrets.DROPLET_IP }} | |
| username: root | |
| key: ${{ secrets.DROPLET_SSH_KEY }} | |
| script: | | |
| cd /opt/blog2video | |
| git fetch origin main | |
| git checkout main | |
| git pull origin main | |
| docker compose down | |
| docker compose build --no-cache | |
| docker compose up -d | |
| docker image prune -f | |
| echo "Deploy complete at $(date)" | |