From 8c0118c1c7e8b338a7b602d9a9b06ebdd54acf68 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Sun, 22 Oct 2023 03:35:05 +0100 Subject: [PATCH] ci(pytest): fix getting backend image tag from docker img ls --- .github/workflows/r-pytest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/r-pytest.yml b/.github/workflows/r-pytest.yml index 35c7833dfc..d0d743467d 100644 --- a/.github/workflows/r-pytest.yml +++ b/.github/workflows/r-pytest.yml @@ -116,7 +116,7 @@ jobs: # Set API_TAG_OVERRIDE if not set echo "Getting backend image tag via docker" - image=$(docker image ls | grep backend) + image=$(docker image ls --filter=reference='ghcr.io/hotosm/fmtm/backend' --format='{{.Tag}}') image_tag="${image##*:}" echo "Image Tag: $image_tag" echo "API_TAG_OVERRIDE=${image_tag}" >> $GITHUB_ENV