From flyio-pack
Configures GitHub Actions CI/CD workflows for Fly.io: Docker builds, deploy tokens, staging/production deploys on push/PR to main.
npx claudepluginhub jeremylongshore/claude-code-plugins-plus-skills --plugin flyio-packThis skill is limited to using the following tools:
Set up CI/CD for Fly.io with GitHub Actions: build Docker images, deploy on push to main, and use deploy tokens for secure automation.
Deploys and manages Fly.io apps using Docker containers, Fly Machines, fly.toml configs, databases, volumes, secrets. Supports fly launch/deploy, debugging, multi-region setups for Python/Node/Rails/Django apps.
Implements Fly.io security best practices: encrypted secrets, scoped deploy tokens, automatic TLS certs, private networking. Includes CLI examples and checklists for secure deployments.
Builds complete GitHub Actions CI/CD pipelines tailored to project stack, auto-detecting language, framework, runtime, and deployment target for lint/test/build/deploy.
Share bugs, ideas, or general feedback.
Set up CI/CD for Fly.io with GitHub Actions: build Docker images, deploy on push to main, and use deploy tokens for secure automation.
# .github/workflows/fly-deploy.yml
name: Deploy to Fly.io
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: '20' }
- run: npm ci && npm test
deploy-staging:
needs: test
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: fly deploy -a my-app-staging --config fly.staging.toml
env:
FLY_API_TOKEN: ${{ secrets.FLY_DEPLOY_TOKEN_STAGING }}
deploy-production:
needs: test
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: fly deploy -a my-app
env:
FLY_API_TOKEN: ${{ secrets.FLY_DEPLOY_TOKEN }}
- run: |
fly status -a my-app
curl -sf https://my-app.fly.dev/health
# Scoped to a single app — use this in CI
fly tokens create deploy -a my-app
# Add as GitHub secret: FLY_DEPLOY_TOKEN
For deployment strategies, see flyio-deploy-integration.