From a4b5c9ac32a1ad450d2ccbe27a281c0c74544418 Mon Sep 17 00:00:00 2001 From: Max Leske Date: Sat, 18 May 2024 15:58:29 +0200 Subject: [PATCH] fix: use correct image ref to run container --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 95b9168..c8374fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -101,8 +101,9 @@ jobs: - name: Run container run: | - echo "Starting container" - docker run --pull "never" -d --name albedo-test "${REPO}:0" + image_ref="$(docker images --filter "reference=${REPO}:*" --format '{{.Repository}}:{{.Tag}}' | head -1)" + echo "Starting container ${image_ref}" + docker run --pull "never" -d --name albedo-test "${image_ref}" docker logs albedo-test - name: Verify container