Skip to content

Commit

Permalink
chore: refactor dapp deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
RanGojo committed Oct 2, 2024
1 parent e548864 commit d3d9820
Show file tree
Hide file tree
Showing 9 changed files with 113 additions and 105 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/dapp/deploy-bw3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Deploy BW3 Dapp

on:
push:
branches:
- dapp-main

jobs:
deploy:
uses: ./.github/workflows/production-dapp-deployment.yml
with:
vercel_project_id: ${{ secrets.VERCEL_DAPP_BW3_EXPLORER_PROJECT_ID }}
next_public_api_key: ${{ secrets.NEXT_DAPP_BW3_EXPLORER_PUBLIC_API_KEY }}
next_public_secret_key: ${{ secrets.NEXT_DAPP_BW3_EXPLORER_PUBLIC_SECRET_KEY }}
secrets:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
NEXT_PUBLIC_BASE_URL: ${{ secrets.NEXT_PUBLIC_BASE_URL }}
18 changes: 18 additions & 0 deletions .github/workflows/dapp/deploy-dexi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Deploy Dexi Dapp

on:
push:
branches:
- dapp-main

jobs:
deploy:
uses: ./.github/workflows/production-dapp-deployment.yml
with:
vercel_project_id: ${{ secrets.VERCEL_DAPP_DEXI_EXPLORER_PROJECT_ID }}
next_public_api_key: ${{ secrets.NEXT_DAPP_DEXI_EXPLORER_PUBLIC_API_KEY }}
next_public_secret_key: ${{ secrets.NEXT_DAPP_DEXI_EXPLORER_PUBLIC_SECRET_KEY }}
secrets:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
NEXT_PUBLIC_BASE_URL: ${{ secrets.NEXT_PUBLIC_BASE_URL }}
18 changes: 18 additions & 0 deletions .github/workflows/dapp/deploy-eld.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Deploy ELD Dapp

on:
push:
branches:
- dapp-main

jobs:
deploy:
uses: ./.github/workflows/production-dapp-deployment.yml
with:
vercel_project_id: ${{ secrets.VERCEL_DAPP_ELD_EXPLORER_PROJECT_ID }}
next_public_api_key: ${{ secrets.NEXT_DAPP_ELD_EXPLORER_PUBLIC_API_KEY }}
next_public_secret_key: ${{ secrets.NEXT_DAPP_ELD_EXPLORER_PUBLIC_SECRET_KEY }}
secrets:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
NEXT_PUBLIC_BASE_URL: ${{ secrets.NEXT_PUBLIC_BASE_URL }}
18 changes: 18 additions & 0 deletions .github/workflows/dapp/deploy-tw.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Deploy TW Dapp

on:
push:
branches:
- dapp-main

jobs:
deploy:
uses: ./.github/workflows/production-dapp-deployment.yml
with:
vercel_project_id: ${{ secrets.VERCEL_DAPP_EXPLORER_PROJECT_ID }}
next_public_api_key: ${{ secrets.NEXT_DAPP_EXPLORER_PUBLIC_API_KEY }}
next_public_secret_key: ${{ secrets.NEXT_DAPP_EXPLORER_PUBLIC_SECRET_KEY }}
secrets:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
NEXT_PUBLIC_BASE_URL: ${{ secrets.NEXT_PUBLIC_BASE_URL }}
18 changes: 18 additions & 0 deletions .github/workflows/dapp/deploy-tw2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Deploy TW2 Dapp

on:
push:
branches:
- dapp-main

jobs:
deploy:
uses: ./.github/workflows/production-dapp-deployment.yml
with:
vercel_project_id: ${{ secrets.VERCEL_DAPP_TW2_EXPLORER_PROJECT_ID }}
next_public_api_key: ${{ secrets.NEXT_DAPP_TW2_EXPLORER_PUBLIC_API_KEY }}
next_public_secret_key: ${{ secrets.NEXT_DAPP_TW2_EXPLORER_PUBLIC_SECRET_KEY }}
secrets:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
NEXT_PUBLIC_BASE_URL: ${{ secrets.NEXT_PUBLIC_BASE_URL }}
31 changes: 0 additions & 31 deletions .github/workflows/production-dapp-bw3-deployment.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
name: Vercel Dapp TW Production Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_DAPP_EXPLORER_PROJECT_ID }}
NEXT_PUBLIC_BASE_URL: ${{ secrets.NEXT_PUBLIC_BASE_URL }}
NEXT_PUBLIC_API_KEY: ${{ secrets.NEXT_DAPP_EXPLORER_PUBLIC_API_KEY }}
NEXT_PUBLIC_SECRET_KEY: ${{ secrets.NEXT_DAPP_EXPLORER_PUBLIC_SECRET_KEY }}
name: Deploy Dapp to Vercel

on:
push:
branches:
- dapp-main
workflow_call:
inputs:
vercel_project_id:
required: true
type: string
next_public_api_key:
required: true
type: string
next_public_secret_key:
required: true
type: string
secrets:
VERCEL_ORG_ID:
required: true
VERCEL_TOKEN:
required: true
NEXT_PUBLIC_BASE_URL:
required: true

jobs:
Deploy-Dapp-TW-Production:
deploy:
runs-on: ubuntu-latest
environment:
name: dapp-production
name: ${{ inputs.environment }}
url: ${{ steps.seturl.outputs.url }}
steps:
- uses: actions/checkout@v2
Expand Down
31 changes: 0 additions & 31 deletions .github/workflows/production-dapp-eldo-deployment.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/production-dapp-tw2-deployment.yml

This file was deleted.

0 comments on commit d3d9820

Please sign in to comment.