Commit 72432649 authored by Yuliya Sharafitdinova's avatar Yuliya Sharafitdinova

Update e2e workflow

parent 3b6d9809
name: Run E2E tests k8s
on:
pull_request_review:
types: [submitted]
push:
tags:
# pull_request_review:
# types: [submitted]
workflow_dispatch:
env:
......@@ -19,6 +21,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
shortSha: ${{ steps.output-step.outputs.short-sha }}
tags: ${{ steps.meta.outputs.tags }}
steps:
- name: Check out the repo
uses: actions/checkout@v3
......@@ -35,6 +38,8 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ghcr.io/blockscout/frontend
tags: |
type=ref,event=tag
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
......@@ -58,10 +63,10 @@ jobs:
file: ./Dockerfile
push: true
cache-from: type=gha
tags: ghcr.io/blockscout/frontend:prerelease-${{ env.GITHUB_REF_NAME_SLUG }}
tags: ghcr.io/blockscout/frontend:${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GIT_COMMIT_SHA=${{ env.GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT }}
GIT_COMMIT_SHA=${{ env.GITHUB_SHA_SHORT }}
deploy_and_tests:
if: github.event.review.state == 'approved'
......@@ -69,7 +74,7 @@ jobs:
uses: blockscout/blockscout-ci-cd/.github/workflows/e2e_new.yaml@master
with:
appNamespace: e2e-front-$GITHUB_SHA_SHORT
frontendImage: ghcr.io/blockscout/frontend:prerelease-$GITHUB_REF_NAME_SLUG
frontendImage: ghcr.io/blockscout/frontend:${{ needs.push_to_registry.outputs.tags }}
blockscoutIngressHost: e2e-blockscout-$GITHUB_SHA_SHORT
frontendIngressHost: e2e-blockscout-$GITHUB_SHA_SHORT
gethIngressHost: e2e-geth-$GITHUB_SHA_SHORT
......
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