-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.4 KB
/
deploy-staging.yaml
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
40
41
42
name: Deploy to Staging
on:
push:
branches:
- main
jobs:
deploy-strapi:
name: Deploy Strapi Staging
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Fly Deploy
working-directory: ./strapi
run: flyctl deploy --remote-only --config fly.staging.toml --dockerfile Dockerfile
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_STRAPI_STAGING }}
deploy-next:
name: Deploy Next Staging
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Fly Deploy
working-directory: ./next
run: flyctl deploy --remote-only --config fly.staging.toml --dockerfile Dockerfile --build-arg STRAPI_KEY=${{ secrets.STAGING_STRAPI_KEY }} --build-arg STRAPI_URL=https://younite-strapi-staging.fly.dev
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_FRONTEND_STAGING }}
deploy-storage:
name: Deploy Storage Staging
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Fly Deploy
working-directory: ./storage
run: flyctl deploy --remote-only --config fly.staging.toml --dockerfile Dockerfile
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_STORAGE_STAGING }}