chore(docker): add usage docs btw #24
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: Deployments | ||
| on: | ||
| push: | ||
| branches: ["*"] | ||
| paths: | ||
| - config/caddy/* | ||
| - scripts/* | ||
| - .github/workflows/deploy.yml | ||
| workflow_dispatch: | ||
| permissions: | ||
| id-token: write # This is required for the tailscale action to request a JWT from GitHub | ||
| contents: read | ||
| jobs: | ||
| #proxypartylab-prod-railwayapp: | ||
| # name: Production Caddy server on railway.app | ||
| # runs-on: ubuntu-latest | ||
| # environment: | ||
| # name: production | ||
| # url: https://proxypartylab.up.railway.app | ||
| # steps: | ||
| # - uses: actions/checkout@v4 | ||
| # - run: echo TODO | ||
| production-azure: | ||
| name: Production - Dedicated Caddy server on Azure VM | ||
| needs: [docker-builds] | ||
| runs-on: ubuntu-latest | ||
| if: github.ref == 'refs/heads/main' | ||
| environment: | ||
| name: production | ||
| url: https://proxyparty.recaptime.dev | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Setup Tailscale (using OIDC workload federation) | ||
| uses: tailscale/github-action@v4 | ||
| with: | ||
| oauth-client-id: TysnXTahJ911CNTRL-knEDkFDtWs11CNTRL | ||
| audience: api.tailscale.com/TysnXTahJ911CNTRL-knEDkFDtWs11CNTRL | ||
| tags: tag:ci | ||
| - name: Deploy updates to server | ||
| run: | | ||
| ssh caddy@proxyparty-caddy-production.tuna-skate.ts.net "/var/lib/caddy/src/scripts/deploy-updates" | ||