Run E2E tests k8s #461
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: Run E2E tests k8s | |
on: | |
workflow_dispatch: | |
workflow_call: | |
# concurrency: | |
# group: ${{ github.workflow }}__${{ github.job }}__${{ github.ref }} | |
# cancel-in-progress: true | |
jobs: | |
publish_image: | |
name: Publish Docker image | |
uses: './.github/workflows/publish-image.yml' | |
secrets: inherit | |
with: | |
# NOTE: by default the image will be built with type=ref,event=tag; so we don't need to specify it here | |
tags: | | |
type=raw,value=e2e | |
deploy_e2e: | |
name: Deploy E2E instance | |
needs: publish_image | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- name: Get Vault credentials | |
id: retrieve-vault-secrets | |
uses: hashicorp/[email protected] | |
with: | |
url: https://vault.k8s.blockscout.com | |
role: ci-dev | |
path: github-jwt | |
method: jwt | |
tlsSkipVerify: false | |
exportToken: true | |
secrets: | | |
ci/data/dev/github token | WORKFLOW_TRIGGER_TOKEN ; | |
- name: Trigger deploy | |
uses: convictional/[email protected] | |
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: | |
name: Run tests | |
needs: deploy_e2e | |
uses: blockscout/blockscout-ci-cd/.github/workflows/e2e_new.yaml@master | |
secrets: inherit |