-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (56 loc) · 1.9 KB
/
deploy.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Deployments
on:
# Enable this when you are ready to deploy using the CI/CD workflow
# workflow_run:
# workflows: ["Unit and Integration Tests"]
# types:
# - completed
# branches:
# - main
workflow_dispatch:
jobs:
check-workflow:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }}
steps:
- name: Workflow check
run: exit 0
deploy:
needs:
- check-workflow
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- uses: ./.github/actions/setup-node
- uses: ./.github/actions/setup-rust
with:
cache-key: "build-wasm"
- uses: ./.github/actions/setup-dfx
with:
dfx-identity-pem: ${{ secrets.DFX_MAINNET_PEM }}
- name: Deploy SSP Backend
run: pnpm turbo run deploy --filter=ssp_backend
env:
ID_TOKEN_ISSUER_BASE_URL: https://${{ vars.AUTH0_DOMAIN }}/
ID_TOKEN_AUDIENCE: ${{ vars.MOBILE_APP_AUTH0_CLIENT_ID }}
DFX_NETWORK: ${{ vars.DFX_NETWORK }}
deploy-auth0:
needs:
- check-workflow
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- uses: ./.github/actions/setup-node
- name: Deploy Auth0
run: pnpm turbo run deploy --filter=auth0
env:
AUTH0_DOMAIN: ${{ vars.AUTH0_DOMAIN }}
AUTH0_CLIENT_ID: ${{ vars.AUTH0_DEPLOY_CLI_CLIENT_ID }}
AUTH0_CLIENT_SECRET: ${{ secrets.AUTH0_DEPLOY_CLI_CLIENT_SECRET }}
AUTH0_PRESERVE_KEYWORDS: true
AUTH0_ALLOW_DELETE: true
WEB_APP_URL: ${{ vars.WEB_APP_URL }}
HASURA_GRAPHQL_ENDPOINT: ${{ vars.HASURA_GRAPHQL_ENDPOINT }}
HASURA_GRAPHQL_ADMIN_SECRET: ${{ secrets.HASURA_GRAPHQL_ADMIN_SECRET }}