From f6bf12615a7ac8722d7276a3981f4e8337335bbe Mon Sep 17 00:00:00 2001 From: Giles Hutton Date: Thu, 4 Jan 2024 11:03:22 +0000 Subject: [PATCH] Get the if statement the right way round... --- .github/workflows/integration-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 6255816078..fa984c9a9e 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -29,10 +29,10 @@ jobs: - id: identify-archs run: | if docker manifest inspect "${COLLECTOR_IMAGE}"; then + supported_archs="$(docker manifest inspect "${COLLECTOR_IMAGE}" | jq -c '[.manifests[].platform.architecture]')" + else docker pull "${COLLECTOR_IMAGE}" supported_archs="$(docker inspect "${COLLECTOR_IMAGE}" | jq -c '[.[].Architecture]')" - else - supported_archs="$(docker manifest inspect "${COLLECTOR_IMAGE}" | jq -c '[.manifests[].platform.architecture]')" fi echo "supported_archs=${supported_archs}" >> "$GITHUB_OUTPUT"