Deploy review environment #687
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy review environment | |
on: | |
workflow_dispatch: | |
inputs: | |
envs_preset: | |
description: ENVs preset | |
required: false | |
default: "" | |
type: choice | |
options: | |
- none | |
- arbitrum | |
- arbitrum_nova | |
- base | |
- celo_alfajores | |
- garnet | |
- gnosis | |
- eth | |
- eth_sepolia | |
- eth_goerli | |
- filecoin | |
- optimism | |
- optimism_celestia | |
- optimism_sepolia | |
- polygon | |
- rootstock | |
- shibarium | |
- scroll_sepolia | |
- stability | |
- zkevm | |
- zilliqa_prototestnet | |
- zksync | |
- zora | |
jobs: | |
make_slug: | |
name: Make GitHub reference slug | |
runs-on: ubuntu-latest | |
outputs: | |
REF_SLUG: ${{ steps.output.outputs.REF_SLUG }} | |
steps: | |
- name: Inject slug/short variables | |
uses: rlespinasse/[email protected] | |
- name: Set output | |
id: output | |
run: echo "REF_SLUG=${{ env.GITHUB_REF_NAME_SLUG }}" >> $GITHUB_OUTPUT | |
publish_image: | |
name: Publish Docker image | |
needs: make_slug | |
uses: './.github/workflows/publish-image.yml' | |
with: | |
tags: ghcr.io/blockscout/frontend:review-${{ needs.make_slug.outputs.REF_SLUG }} | |
build_args: ENVS_PRESET=${{ inputs.envs_preset }} | |
secrets: inherit | |
deploy_review: | |
name: Deploy frontend | |
needs: [ make_slug, publish_image ] | |
uses: blockscout/blockscout-ci-cd/.github/workflows/deploy_helmfile.yaml@master | |
with: | |
appName: review-${{ needs.make_slug.outputs.REF_SLUG }} | |
globalEnv: review | |
helmfileDir: deploy | |
kubeConfigSecret: ci/data/dev/kubeconfig/k8s-dev | |
vaultRole: ci-dev | |
secrets: inherit |