generated from UoaWDCC/react-template
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (30 loc) · 1.13 KB
/
deploy.production.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
name: Fly Deploy Production
on: [workflow_dispatch]
jobs:
deploy-web:
name: Deploy Web
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only --config fly.production.toml
working-directory: ./web
env:
FLY_API_TOKEN: ${{ secrets.FLY_WEB_PRODUCTION_API_TOKEN }}
deploy-api:
name: Deploy Api
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only --config fly.production.toml
working-directory: ./api
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_PRODUCTION_API_TOKEN }}
apiKey: ${{ secrets.FLY_DB_APIKEY }}
appId: ${{ secrets.FLY_DB_APPID }}
authDomain: ${{ secrets.FLY_DB_AUTHDOMAIN }}
measurementId: ${{ secrets.FLY_DB_MEASUREMENTID }}
messagingSenderId: ${{ secrets.FLY_DB_MESSAGINGSENDERID }}
projectId: ${{ secrets.FLY_DB_PROJECTID }}
storageBucket: ${{ secrets.FLY_DB_STORAGEBUCKET }}