Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add moonbeam alpha environment to CI #1575

Merged
merged 3 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
1 change: 1 addition & 0 deletions faucet-api/env-vars/moonbeam-alpha.secrets
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SEED_HEX=projects/peak-vista-185616/secrets/FAUCET_SEED_HEX
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