Commit 72432649 authored by Yuliya Sharafitdinova's avatar Yuliya Sharafitdinova

Update e2e workflow

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