Add machine ID suffix to Tailscale hostnames to prevent clashes #29
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
| # ABOUTME: GitHub Actions workflow for automated Fly.io deployment | |
| # ABOUTME: Deploys hub, anycast leaves, and services on push to main | |
| name: Deploy to Fly.io | |
| on: | |
| push: | |
| branches: [main] | |
| env: | |
| FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
| jobs: | |
| deploy: | |
| name: Deploy Applications | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/main' | |
| strategy: | |
| max-parallel: 1 | |
| matrix: | |
| include: | |
| - app: magnet-9rl | |
| config: servers/magnet-9rl/fly.toml | |
| - app: magnet-irc | |
| config: servers/magnet-irc/fly.toml | |
| - app: magnet-atheme | |
| config: servers/magnet-atheme/fly.toml | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: superfly/flyctl-actions/setup-flyctl@master | |
| - name: Deploy ${{ matrix.app }} | |
| run: flyctl deploy --config ${{ matrix.config }} --app ${{ matrix.app }} --remote-only |