Spaces:
Configuration error
Configuration error
Download .github/workflows/main.yml from lifedebugger/api-qobiltu-dev: direct link, hf CLI and curl.
- Browser
- Download file 648 Bytes
-
https://huggingface.co/spaces/lifedebugger/api-qobiltu-dev/resolve/main/.github/workflows/main.yml
- Command line
-
hf download hf://spaces/lifedebugger/api-qobiltu-dev/.github/workflows/main.yml
-
curl -L -o main.yml https://huggingface.co/spaces/lifedebugger/api-qobiltu-dev/resolve/main/.github/workflows/main.yml
648 Bytes
| name: Deploy Golang App | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v3 | |
| - name: Set up SSH key | |
| uses: webfactory/ssh-agent@v0.5.4 | |
| with: | |
| ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
| - name: Deploy to VPS | |
| run: | | |
| ssh -o StrictHostKeyChecking=no qobiltu@103.23.199.136 << 'EOF' | |
| cd /home/qobiltu/api-qobiltu | |
| git pull origin main | |
| docker-compose down -v | |
| docker-compose up --build -d | |
| docker image prune -f | |
| EOF | |