From d3b951300df34cd155c04d1aa292359111a84ebb Mon Sep 17 00:00:00 2001 From: Malte Poll <1780588+malt3@users.noreply.github.com> Date: Mon, 8 Jan 2024 14:32:08 +0100 Subject: [PATCH] ci: explicitly build s3proxy container image tag before referencing (#2806) Otherwise, the file might not exist. --- .github/actions/e2e_s3proxy/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/e2e_s3proxy/action.yml b/.github/actions/e2e_s3proxy/action.yml index b3e767cc1..b3e1bf49e 100644 --- a/.github/actions/e2e_s3proxy/action.yml +++ b/.github/actions/e2e_s3proxy/action.yml @@ -46,7 +46,9 @@ runs: shell: bash run: | bazel run //bazel/release:s3proxy_push - echo s3proxyImage=$(cat ./bazel-bin/bazel/release/s3proxy_tag.txt) | tee -a "$GITHUB_OUTPUT" + bazel build //bazel/release:s3proxy_tag.txt + tagpath=$(bazel cquery --output=files //bazel/release:s3proxy_tag.txt) + echo s3proxyImage=$(cat "${tagpath}") | tee -a "$GITHUB_OUTPUT" - name: Setup s3proxy shell: bash