Skip to content

Commit

Permalink
chore(repo): further-updates-to-ui-workflows (#17055)
Browse files Browse the repository at this point in the history
Co-authored-by: Karim <[email protected]>
Co-authored-by: d1onys1us <[email protected]>
  • Loading branch information
3 people authored May 8, 2024
1 parent 5745b50 commit 65ff299
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 111 deletions.
53 changes: 15 additions & 38 deletions .github/workflows/bridge-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,58 +12,35 @@ on:

jobs:
build-and-test:
runs-on: [taiko-runner]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build and Checks
uses: ./.github/workflows/bridge-ui-ci.yml
uses: ./.github/workflows/bridge-ui-ci.yml

# Deployment name follow the pattern: deploy_<appname(bridge-ui)>_<network(devnet|hekla|mainnet)>_<environment(preview|production)>
deploy_bridge-ui_hekla_preview:
if: ${{ github.ref_name != 'main' }}
runs-on: [taiko-runner]
needs: build-and-test
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI_HEKLA }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Deploy
uses: ./.github/workflows/vercel-deploy.yml
with:
uses: ./.github/workflows/vercel-deploy.yml
with:
environment: 'preview'
flags: ''
vercel_project_id: ${{ env.VERCEL_PROJECT_ID }}
secrets:
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI_HEKLA }}

deploy_bridge-ui_devnet_preview:
if: ${{ github.ref_name != 'main' }}
runs-on: [taiko-runner]
needs: build-and-test
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI_INTERNAL }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Deploy
uses: ./.github/workflows/vercel-deploy.yml
with:
uses: ./.github/workflows/vercel-deploy.yml
with:
environment: 'preview'
flags: ''
vercel_project_id: ${{ env.VERCEL_PROJECT_ID }}
secrets:
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI_INTERNAL }}

deploy_bridge-ui_hekla_production:
if: ${{ github.ref_name == 'main' && contains(github.ref, 'refs/tags/bridge-ui-') }}
runs-on: [taiko-runner]
needs: build-and-test
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI_HEKLA }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Deploy
uses: ./.github/workflows/vercel-deploy.yml
with:
environment: 'production'
flags: '--prod'
vercel_project_id: ${{ env.VERCEL_PROJECT_ID }}
uses: ./.github/workflows/vercel-deploy.yml
with:
environment: 'production'
flags: '--prod'
secrets:
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI_HEKLA }}
61 changes: 19 additions & 42 deletions .github/workflows/guardians-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,58 +12,35 @@ on:

jobs:
build-and-test:
runs-on: [taiko-runner]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build and Checks
uses: ./.github/workflows/guardian-prover-health-check-ui-ci.yml
uses: ./.github/workflows/guardians-ui-ci.yml

# Deployment name follow the pattern: deploy_<appname(guardian-prover-health-check-ui)>_<network(devnet|hekla|mainnet)>_<environment(preview|production)>
deploy_guardian-prover-health-check-ui_hekla_preview:
deploy_guardians-ui_hekla_preview:
if: ${{ github.ref_name != 'main' }}
runs-on: [taiko-runner]
needs: build-and-test
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_GUARDIAN_UI_HEKLA }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Deploy
uses: ./.github/workflows/vercel-deploy.yml
with:
uses: ./.github/workflows/vercel-deploy.yml
with:
environment: 'preview'
flags: ''
vercel_project_id: ${{ env.VERCEL_PROJECT_ID }}
secrets:
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_GUARDIAN_UI_HEKLA }}

deploy_guardian-prover-health-check-ui_devnet_preview:
deploy_guardians-ui_devnet_preview:
if: ${{ github.ref_name != 'main' }}
runs-on: [taiko-runner]
needs: build-and-test
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_GUARDIAN_UI_INTERNAL }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Deploy
uses: ./.github/workflows/vercel-deploy.yml
with:
uses: ./.github/workflows/vercel-deploy.yml
with:
environment: 'preview'
flags: ''
vercel_project_id: ${{ env.VERCEL_PROJECT_ID }}
secrets:
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_GUARDIAN_UI_INTERNAL }}

deploy_guardian-prover-health-check-ui_hekla_production:
if: ${{ github.ref_name == 'main' && contains(github.ref, 'refs/tags/guardian-prover-health-check-ui-') }}
runs-on: [taiko-runner]
deploy_guardians-ui_hekla_production:
if: ${{ github.ref_name == 'main' && contains(github.ref, 'refs/tags/guardians-ui-') }}
needs: build-and-test
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_GUARDIAN_UI_HEKLA }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Deploy
uses: ./.github/workflows/vercel-deploy.yml
with:
environment: 'production'
flags: '--prod'
vercel_project_id: ${{ env.VERCEL_PROJECT_ID }}
uses: ./.github/workflows/vercel-deploy.yml
with:
environment: 'production'
flags: '--prod'
secrets:
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_GUARDIAN_UI_HEKLA }}
40 changes: 11 additions & 29 deletions .github/workflows/taikoon-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,43 +12,25 @@ on:

jobs:
build-and-test:
runs-on: [taiko-runner]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build and Checks
uses: ./.github/workflows/taikoon-ui-ci.yml
uses: ./.github/workflows/taikoon-ui-ci.yml

# Deployment name follow the pattern: deploy_<appname(taikoon-ui)>_<network(devnet|hekla|mainnet)>_<environment(preview|production)>
deploy_taikoon-ui_mainnet_preview:
if: ${{ github.ref_name != 'main' }}
runs-on: [taiko-runner]
needs: build-and-test
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_TAIKOON_UI_MAINNET }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Deploy
uses: ./.github/workflows/vercel-deploy.yml
with:
uses: ./.github/workflows/vercel-deploy.yml
with:
environment: 'preview'
flags: ''
vercel_project_id: ${{ env.VERCEL_PROJECT_ID }}

secrets:
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_TAIKOON_UI_MAINNET }}

deploy_taikoon-ui_mainnet_production:
if: ${{ github.ref_name == 'main' && contains(github.ref, 'refs/tags/taikoon-ui-') }}
runs-on: [taiko-runner]
needs: build-and-test
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_TAIKOON_UI_MAINNET }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Deploy
uses: ./.github/workflows/vercel-deploy.yml
with:
environment: 'production'
flags: '--prod'
vercel_project_id: ${{ env.VERCEL_PROJECT_ID }}
uses: ./.github/workflows/vercel-deploy.yml
with:
environment: 'production'
flags: '--prod'
secrets:
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_TAIKOON_UI_MAINNET }}
5 changes: 3 additions & 2 deletions .github/workflows/vercel-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ on:
flags:
type: string
required: true
secrets:
vercel_project_id:
type: string
description: 'Vercel Project ID'
required: true

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ inputs.vercel_project_id }}
VERCEL_PROJECT_ID: ${{ secrets.vercel_project_id }}

jobs:
build-deploy:
Expand Down

0 comments on commit 65ff299

Please sign in to comment.