From c6791cdfc0443ae203e5f5e7b4c6bc33d6b02c17 Mon Sep 17 00:00:00 2001 From: stranger80 Date: Tue, 21 Nov 2023 11:39:36 +0100 Subject: [PATCH] Added CI/CD configuration --- .github/workflows/manual-api-deploy-prod.yml | 6 +++++- .github/workflows/manual-ui-deploy-prod.yml | 3 +++ .github/workflows/remix-deploy.yml | 3 +++ plugin/.env | 6 +++--- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/manual-api-deploy-prod.yml b/.github/workflows/manual-api-deploy-prod.yml index 7386052b..3817a14f 100644 --- a/.github/workflows/manual-api-deploy-prod.yml +++ b/.github/workflows/manual-api-deploy-prod.yml @@ -13,6 +13,10 @@ env: DEV_SERVICE_NAME: "rocket-development-svc" PROD_CLUSTER: "zksync-remix-plugin-production-ecs-cluster" PROD_SERVICE_NAME: "rocket-production-svc" + API_SERVICE_URL: "https://zksync-remix-api.nethermind.io" + ZKSYNC_DEVNET_URL: "https://zksync-devnet.nethermind.dev" + WALLETCONNECT_PROJECT_ID: '${{secrets.WALLECTCONNECT_PROJECT_ID_PROD}}' + jobs: Build: runs-on: ubuntu-latest @@ -102,7 +106,7 @@ jobs: # inject the expected React package URL for CORS logic environment-variables: | RUST_LOG=INFO - VITE_URL=https://zksync-plugin.nethermind.dev/ + VITE_URL=https://zksync-plugin.nethermind.io/ PROMTAIL_USERNAME=${{secrets.PROMTAIL_USERNAME}} PROMTAIL_PASSWORD=${{secrets.PROMTAIL_PASSWORD}} diff --git a/.github/workflows/manual-ui-deploy-prod.yml b/.github/workflows/manual-ui-deploy-prod.yml index 0433d1f2..d6222290 100644 --- a/.github/workflows/manual-ui-deploy-prod.yml +++ b/.github/workflows/manual-ui-deploy-prod.yml @@ -6,6 +6,9 @@ env: NODE_VERSION: '20.x' BUCKET_NAME: 'zksync-remix-plugin-web' PROD_BUCKET_NAME: 'zksync-remix-plugin-prod-web' + API_SERVICE_URL: "https://zksync-remix-api.nethermind.io" + ZKSYNC_DEVNET_URL: "https://zksync-devnet.nethermind.dev" + WALLETCONNECT_PROJECT_ID: '${{secrets.WALLECTCONNECT_PROJECT_ID_PROD}}' permissions: diff --git a/.github/workflows/remix-deploy.yml b/.github/workflows/remix-deploy.yml index a7108c4c..f2430a0f 100644 --- a/.github/workflows/remix-deploy.yml +++ b/.github/workflows/remix-deploy.yml @@ -10,6 +10,9 @@ env: NODE_VERSION: '20.x' BUCKET_NAME: 'zksync-remix-plugin-web' PROD_BUCKET_NAME: 'zksync-remix-plugin-prod-web' + API_SERVICE_URL: "https://zksync-remix-api.nethermind.dev" + ZKSYNC_DEVNET_URL: "https://zksync-devnet.nethermind.dev" + WALLETCONNECT_PROJECT_ID: '${{secrets.WALLECTCONNECT_PROJECT_ID_DEV}}' permissions: diff --git a/plugin/.env b/plugin/.env index 51895524..1adb7189 100644 --- a/plugin/.env +++ b/plugin/.env @@ -1,5 +1,5 @@ -VITE_API_URL=https://zksync-plugin-api.nethermind.dev +VITE_API_URL=$API_SERVICE_URL # https://zksync-plugin-api.nethermind.dev VITE_DEVNET_URL=http://127.0.0.1:8011 -VITE_REMOTE_DEVNET_URL=https://zksync-devnet.nethermind.dev +VITE_REMOTE_DEVNET_URL=$ZKSYNC_DEVNET_URL # https://zksync-devnet.nethermind.dev VITE_VERSION=$npm_package_version -VITE_WALLET_CONNECT_PROJECT_ID=630093679339d9e6a59508feafbae4ce +VITE_WALLET_CONNECT_PROJECT_ID=$WALLETCONNECT_PROJECT_ID