pre-warm the s3 cache #12
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 Server to Fly.io | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'server/**' | |
- 'internal/**' | |
- 'go.mod' | |
- 'go.sum' | |
- '.github/workflows/deploy-server.yml' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Fly CLI | |
uses: superfly/flyctl-actions/setup-flyctl@master | |
- name: Deploy to Fly.io | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
run: | | |
flyctl deploy --remote-only \ | |
--config server/fly.toml \ | |
--dockerfile server/Dockerfile \ | |
--build-arg BUILDKIT_INLINE_CACHE=1 |