-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 837 Bytes
/
deploy.yml
File metadata and controls
39 lines (32 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Deploy Worker
on:
push:
branches: [main]
paths:
- "apps/worker/**"
- "packages/shared/**"
- "pnpm-lock.yaml"
# Only one deploy at a time
concurrency:
group: deploy-worker
cancel-in-progress: false
jobs:
# Gate deployment behind a successful CI run
ci:
name: CI
uses: ./.github/workflows/ci.yml
deploy:
name: Deploy to Fly.io
runs-on: ubuntu-latest
needs: ci
timeout-minutes: 15
environment: production
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Fly CLI
uses: superfly/flyctl-actions/setup-flyctl@master
- name: Deploy worker
run: flyctl deploy --config apps/worker/fly.toml --dockerfile apps/worker/Dockerfile --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}