Commit 09c09dd3 authored by nzenchik's avatar nzenchik Committed by GitHub

Nz e2e fix (#884)

* Fixing e2e tests run
parent 3521bf77
...@@ -4,18 +4,8 @@ on: ...@@ -4,18 +4,8 @@ on:
push: push:
tags: tags:
- '*' - '*'
# pull_request_review:
# types: [submitted]
workflow_dispatch: workflow_dispatch:
env:
K8S_LOCAL_PORT: ${{ secrets.K8S_LOCAL_PORT }}
K8S_HOST: ${{ secrets.K8S_HOST }}
BASTION_HOST: ${{ secrets.BASTION_HOST }}
K8S_PORT: ${{ secrets.K8S_PORT }}
USERNAME: ${{ secrets.USERNAME }}
BASTION_SSH_KEY: ${{secrets.BASTION_SSH_KEY}}
jobs: jobs:
push_to_registry: push_to_registry:
name: Push Docker image to registry name: Push Docker image to registry
...@@ -67,15 +57,34 @@ jobs: ...@@ -67,15 +57,34 @@ jobs:
build-args: | build-args: |
GIT_COMMIT_SHA=${{ env.SHORT_SHA }} GIT_COMMIT_SHA=${{ env.SHORT_SHA }}
GIT_TAG=${{ github.ref_type == 'tag' && github.ref_name || '' }} GIT_TAG=${{ github.ref_type == 'tag' && github.ref_name || '' }}
#deploy_and_tests: deploy_e2e:
# if: github.event.review.state == 'approved' needs: push_to_registry
# needs: push_to_registry runs-on: ubuntu-latest
# uses: blockscout/blockscout-ci-cd/.github/workflows/e2e_new.yaml@master permissions: write-all
# with: steps:
# appNamespace: e2e-front-$GITHUB_SHA_SHORT - name: Get Vault credentials
# frontendImage: ${{ needs.push_to_registry.outputs.tags }} id: retrieve-vault-secrets
# blockscoutIngressHost: e2e-blockscout-$GITHUB_SHA_SHORT uses: hashicorp/vault-action@v2.4.1
# frontendIngressHost: e2e-blockscout-$GITHUB_SHA_SHORT with:
# gethIngressHost: e2e-geth-$GITHUB_SHA_SHORT url: https://vault.k8s.blockscout.com
# scVerifierIngressHost: e2e-sc-verifier-$GITHUB_SHA_SHORT role: ci-dev
# secrets: inherit path: github-jwt
method: jwt
tlsSkipVerify: false
exportToken: true
secrets: |
ci/data/dev/github token | WORKFLOW_TRIGGER_TOKEN ;
- name: Trigger deploy
uses: convictional/trigger-workflow-and-wait@v1.6.1
with:
owner: blockscout
repo: deployment-values
github_token: ${{env.WORKFLOW_TRIGGER_TOKEN}}
workflow_file_name: deploy_blockscout.yaml
ref: main
wait_interval: 30
client_payload: '{ "instance": "dev", "globalEnv": "e2e"}'
test:
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