From 4a10e1b066c8d153fb215c3395a3086881b40915 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Thu, 3 Nov 2022 15:21:28 +0200 Subject: [PATCH] Pass pushed storage Docker tag to e2e jobs --- .github/workflows/build_and_test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 435265270a..707b20bcb8 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -445,11 +445,15 @@ jobs: container: image: 369495373322.dkr.ecr.eu-central-1.amazonaws.com/base:pinned options: --init - needs: [ build-neon ] + needs: [ push-docker-hub, tag ] steps: - name: Set PR's status to pending and request a remote CI test run: | + # For pull requests, GH Actions set "github.sha" variable to point at a fake merge commit + # but we need to use a real sha of a latest commit in the PR's branch for the e2e job, + # to place a job run status update later. COMMIT_SHA=${{ github.event.pull_request.head.sha }} + # For non-PR kinds of runs, the above will produce an empty variable, pick the original sha value for those COMMIT_SHA=${COMMIT_SHA:-${{ github.sha }}} REMOTE_REPO="${{ github.repository_owner }}/cloud" @@ -475,7 +479,9 @@ jobs: \"inputs\": { \"ci_job_name\": \"neon-cloud-e2e\", \"commit_hash\": \"$COMMIT_SHA\", - \"remote_repo\": \"${{ github.repository }}\" + \"remote_repo\": \"${{ github.repository }}\", + \"storage_image_tag\": \"${{ needs.tag.outputs.build-tag }}\", + \"compute_image_tag\": \"${{ needs.tag.outputs.build-tag }}\" } }"