From cd4775de5399a5a5907bb18690efe7ff9e433c4e Mon Sep 17 00:00:00 2001 From: Daniel Juenger <2955913+sleeepyjack@users.noreply.github.com> Date: Mon, 21 Aug 2023 13:14:32 +0000 Subject: [PATCH] Check if devcontainer image exists --- .github/workflows/build-and-test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index c641ec01a..6ff7a395e 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -50,7 +50,15 @@ jobs: COMPILER_SEGMENT="${{ inputs.compiler }}${{ inputs.compiler_version }}-" fi DEVCONTAINER_IMAGE="rapidsai/devcontainers:${{inputs.devcontainer_version}}-cpp-${COMPILER_SEGMENT}cuda${{inputs.cuda_version}}-${{inputs.os}}" + echo "DEVCONTAINER_IMAGE=$DEVCONTAINER_IMAGE" >> $GITHUB_ENV echo "name=$DEVCONTAINER_IMAGE" >> $GITHUB_OUTPUT + - name: Check if devcontainer image exists + run: | + docker manifest inspect "$DEVCONTAINER_IMAGE" > /dev/null + if [ $? -ne 0 ]; then + echo "Error: Docker image $DEVCONTAINER_IMAGE does not exist." + exit 1 + fi build: needs: devcontainer_image