Commit 001b2990 authored by tom's avatar tom

refactor workflow files

parent 0a992acd
name: Publish Docker image on every push to main branch
name: Deploy from main branch
on:
push:
......@@ -10,8 +10,8 @@ concurrency:
cancel-in-progress: true
jobs:
push_to_registry:
name: Push Docker image to registry
publish_image:
name: Publish Docker image
runs-on: ubuntu-latest
steps:
- name: Check out the repo
......@@ -52,7 +52,7 @@ jobs:
deploy_main:
name: Deploy frontend
needs: push_to_registry
needs: publish_image
uses: blockscout/blockscout-ci-cd/.github/workflows/deploy_helmfile.yaml@master
with:
appName: front
......@@ -61,9 +61,10 @@ jobs:
kubeConfigSecret: ci/data/dev/kubeconfig/k8s-dev
vaultRole: ci-dev
secrets: inherit
deploy_l2:
name: Deploy frontend (L2)
needs: push_to_registry
needs: publish_image
uses: blockscout/blockscout-ci-cd/.github/workflows/deploy_helmfile.yaml@master
with:
appName: l2-optimism-goerli
......
name: Deploy l2 review environment (manually)
name: Deploy review environment (L2)
on:
# pull_request:
# push:
workflow_dispatch:
jobs:
push_to_registry:
name: Push Docker image to registry
publish_image:
name: Publish Docker image
runs-on: ubuntu-latest
outputs:
shortSha: ${{ steps.output-step.outputs.short-sha }}
......@@ -56,8 +54,8 @@ jobs:
GIT_COMMIT_SHA=${{ env.SHORT_SHA }}
deploy_review_l2:
name: Deploy review l2
needs: push_to_registry
name: Deploy frontend (L2)
needs: publish_image
uses: blockscout/blockscout-ci-cd/.github/workflows/deploy_helmfile.yaml@master
with:
appName: review-l2-$GITHUB_REF_NAME_SLUG
......
name: Deploy review environment (manually)
name: Deploy review environment
on:
# pull_request:
# push:
workflow_dispatch:
jobs:
push_to_registry:
name: Push Docker image to registry
publish_image:
name: Publish Docker image
runs-on: ubuntu-latest
outputs:
shortSha: ${{ steps.output-step.outputs.short-sha }}
......@@ -56,8 +54,8 @@ jobs:
GIT_COMMIT_SHA=${{ env.SHORT_SHA }}
deploy_review:
name: Deploy review
needs: push_to_registry
name: Deploy frontend
needs: publish_image
uses: blockscout/blockscout-ci-cd/.github/workflows/deploy_helmfile.yaml@master
with:
appName: review-$GITHUB_REF_NAME_SLUG
......
......@@ -9,8 +9,8 @@ concurrency:
cancel-in-progress: true
jobs:
push_to_registry:
name: Push Docker image to registry
publish_image:
name: Publish Docker image
runs-on: ubuntu-latest
outputs:
shortSha: ${{ steps.output-step.outputs.short-sha }}
......@@ -59,8 +59,10 @@ jobs:
build-args: |
GIT_COMMIT_SHA=${{ env.SHORT_SHA }}
GIT_TAG=${{ github.ref_type == 'tag' && github.ref_name || '' }}
deploy_e2e:
needs: push_to_registry
name: Deploy E2E instance
needs: publish_image
runs-on: ubuntu-latest
permissions: write-all
steps:
......@@ -86,7 +88,9 @@ jobs:
ref: main
wait_interval: 30
client_payload: '{ "instance": "dev", "globalEnv": "e2e"}'
test:
name: Run tests
needs: deploy_e2e
uses: blockscout/blockscout-ci-cd/.github/workflows/e2e_new.yaml@master
secrets: inherit
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment