Skip to content

Commit

Permalink
Add needs and fix skopeo job.
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronrutherford committed Aug 6, 2024
1 parent 391c22b commit 6e83f57
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/spack_cpu_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,18 @@ jobs:
submodules: true

check_for_image:
needs: checkout_code
name: Check for image
runs-on: docker.io/kfox1111/misc:skopeo
runs-on: ubuntu-22.04
permissions:
packages: read
steps:
# No GHCR base image with skopeo, so this will do...
- name: "Set up skopeo"
uses: warjiang/setup-skopeo@latest
with:
version: latest

# Use skopeo to check for image for convenience
- name: Check for existing base images
run: |
Expand All @@ -48,6 +55,7 @@ jobs:
echo "IMAGE_EXISTS=false" >> $GITHUB_ENV
base_image_build:
needs: check_for_image
runs-on: ubuntu-22.04
permissions:
packages: write
Expand Down

0 comments on commit 6e83f57

Please sign in to comment.