Skip to content

Commit

Permalink
Add moonbeam alpha environment to CI (#1575)
Browse files Browse the repository at this point in the history
* Deploy when pushing to main
  • Loading branch information
gpmayorga authored Sep 11, 2023
1 parent f89ccc0 commit ced2ca2
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/actions/prepare-deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ runs:
echo "function_name=${{ inputs.app_base_name }}-demo" >> $GITHUB_OUTPUT
echo "front_url=${{ inputs.app_base_name }}-demo.k-f.dev" >> $GITHUB_OUTPUT
echo "env_name=demo" >> $GITHUB_OUTPUT
elif ${{ contains(inputs.deploy_to, 'moonbeam-alpha') }}; then
# moonbeam-alpha
echo "function_name=${{ inputs.app_base_name }}-moonbeam-alpha" >> $GITHUB_OUTPUT
echo "front_url=${{ inputs.app_base_name }}-moonbeam-alpha.k-f.dev" >> $GITHUB_OUTPUT
echo "env_name=moonbeam-alpha" >> $GITHUB_OUTPUT
elif ${{ github.ref == 'refs/heads/main' }}; then
# DEV
echo "function_name=${{ inputs.app_base_name }}-dev" >> $GITHUB_OUTPUT
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/moonbeam-alpha-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Moonbeam dev (alpha) deployments (manual)"
on:
push:
branches: main
pull_request:
paths:
- '.github/workflows/moonbeam-alpha-deploy.yml'

jobs:
app-moonbeam-alpha:
uses: ./.github/workflows/centrifuge-app.yml
secrets: inherit
with:
deploy_env: moonbeam-alpha


pinning-moonbeam-alpha:
uses: ./.github/workflows/pinning-api.yml
secrets: inherit
with:
deploy_env: moonbeam-alpha


onboarding-moonbeam-alpha:
uses: ./.github/workflows/onboarding-api.yml
secrets: inherit
with:
deploy_env: moonbeam-alpha

# faucet-moonbeam-alpha:
# uses: ./.github/workflows/faucet-api.yml
# secrets: inherit
# with:
# deploy_env: moonbeam-alpha
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ yarn-error.log
!.env.demo
!.env.catalyst
!.env.production
!.env.moonbeam-alpha
20 changes: 20 additions & 0 deletions centrifuge-app/.env-config/.env.moonbeam-alpha
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
REACT_APP_COLLATOR_WSS_URL=wss://fullnode.moonbase-dev.cntrfg.com/public-ws
REACT_APP_DEFAULT_NODE_URL=https://pod.moonbeam-alpha.k-f.dev
REACT_APP_DEFAULT_UNLIST_POOLS=true
REACT_APP_FAUCET_URL=https://europe-central2-peak-vista-185616.cloudfunctions.net/faucet-api-moonbean-alpha
REACT_APP_IPFS_GATEWAY=https://centrifuge.mypinata.cloud/
REACT_APP_IS_DEMO=true
REACT_APP_ONBOARDING_API_URL=https://europe-central2-peak-vista-185616.cloudfunctions.net/onboarding-api-moonbean-alpha
REACT_APP_PINNING_API_URL=https://europe-central2-peak-vista-185616.cloudfunctions.net/pinning-api-moonbean-alpha
REACT_APP_POOL_CREATION_TYPE=immediate
REACT_APP_RELAY_WSS_URL=wss://frag-moonbase-relay-rpc-ws.g.moonbase.moonbeam.network
REACT_APP_SUBQUERY_URL=https://api.subquery.network/sq/centrifuge/pools-demo
REACT_APP_SUBSCAN_URL=
REACT_APP_TINLAKE_NETWORK=goerli
REACT_APP_INFURA_KEY=bf808e7d3d924fbeb74672d9341d0550
REACT_APP_WHITELISTED_ACCOUNTS=
REACT_APP_NETWORK=centrifuge
REACT_APP_REWARDS_TREE_URL=https://storage.googleapis.com/rad-rewards-trees-kovan-staging/latest.json
REACT_APP_MEMBERLIST_ADMIN_PURE_PROXY=kALwmJutBq95s41U9fWnoApCUgvPqPGTh1GSmFnQh5f9fWo93
REACT_APP_WALLETCONNECT_ID=c32fa79350803519804a67fcab0b742a
REACT_APP_TINLAKE_SUBGRAPH_URL=https://graph.centrifuge.io/tinlake
7 changes: 7 additions & 0 deletions onboarding-api/env-vars/moonbeam-alpha.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
REDIRECT_URL=https://app-moonbase.k-f.dev
MEMBERLIST_ADMIN_PURE_PROXY=kAM1ELFDHdHeLDAkAdwEnfufoCL5hpUycGs4ZQkSQKVpHFoXm
COLLATOR_WSS_URL=wss://fullnode.moonbase-dev.cntrfg.com/public-ws
RELAY_WSS_URL=wss://frag-moonbase-relay-rpc-ws.g.moonbase.moonbeam.network
INFURA_KEY=bf808e7d3d924fbeb74672d9341d0550
EVM_NETWORK=goerli
ONBOARDING_STORAGE_BUCKET=centrifuge-onboarding-api-dev
7 changes: 7 additions & 0 deletions onboarding-api/env-vars/moonbeam-alpha.secrets
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
SHUFTI_PRO_SECRET_KEY=projects/peak-vista-185616/secrets/SHUFTI_PRO_SECRET_KEY
SHUFTI_PRO_CLIENT_ID=projects/peak-vista-185616/secrets/SHUFTI_PRO_CLIENT_ID
JWT_SECRET=projects/peak-vista-185616/secrets/JWT_SECRET
SENDGRID_API_KEY=projects/peak-vista-185616/secrets/SENDGRID_API_KEY
COOKIE_SECRET=projects/peak-vista-185616/secrets/COOKIE_SECRET
PURE_PROXY_CONTROLLER_SEED=projects/peak-vista-185616/secrets/PURE_PROXY_CONTROLLER_SEED
EVM_MEMBERLIST_ADMIN_PRIVATE_KEY=projects/peak-vista-185616/secrets/EVM_MEMBERLIST_ADMIN_PRIVATE_KEY
2 changes: 2 additions & 0 deletions pinning-api/env-vars/moonbeam-alpha.secrets
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PINATA_API_KEY=projects/peak-vista-185616/secrets/PINATA_API_KEY
PINATA_SECRET_API_KEY=projects/peak-vista-185616/secrets/PINATA_SECRET_API_KEY

0 comments on commit ced2ca2

Please sign in to comment.