-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 1.17 KB
/
fly.yml
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
name: Fly Deploy
on:
push:
branches: [main]
jobs:
deploy-app:
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: |
flyctl deploy \
--config fly.production.toml \
--build-secret PUBLIC_CF_IMAGES_ENDPOINT=${{ secrets.PUBLIC_CF_IMAGES_ENDPOINT }} \
--build-secret PUBLIC_STORYBLOK_TOKEN=${{ secrets.PUBLIC_STORYBLOK_TOKEN }} \
--build-secret PUBLIC_POSTHOG_TOKEN=${{ secrets.PUBLIC_POSTHOG_TOKEN }} \
--build-secret PUBLIC_VERSION_DATE=${{ github.event.head_commit.timestamp }} \
--build-secret PUBLIC_SIGNATURES_WORKER=${{ secrets.PUBLIC_SIGNATURES_WORKER }} \
--build-secret ADMIN_PASSWORD=${{ secrets.ADMIN_PASSWORD }} \
--build-secret WORKER_PSK=${{ secrets.WORKER_PSK }} \
--build-secret RESEND_TOKEN=${{ secrets.RESEND_TOKEN }} \
--remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
deploy-workers:
name: Deploy workers
uses: ./.github/workflows/workers.yml
secrets:
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}