Update open-paws-strategy submodule to latest #127
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: Deploy to Production | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy to Droplet | |
| uses: appleboy/ssh-action@0ff4204d59e8e51228ff73bce53f80d53301dee2 # v1.2.5 | |
| with: | |
| host: 64.227.144.36 | |
| username: root | |
| key: ${{ secrets.DEPLOY_SSH_KEY }} | |
| script: | | |
| set -e | |
| cd /opt/cryptpad | |
| echo "[$(date)] Starting deployment..." | |
| git config --global --add safe.directory /opt/cryptpad | |
| git fetch origin | |
| git reset --hard origin/main | |
| docker compose build | |
| docker compose down --remove-orphans || true | |
| docker compose up -d | |
| echo "[$(date)] Deployment complete!" |