Skip to content

Commit

Permalink
Check if devcontainer image exists
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeepyjack committed Aug 21, 2023
1 parent 858f7a0 commit cd4775d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd4775d

Please sign in to comment.