Skip to content

Commit

Permalink
run help on container after build
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpb committed Mar 29, 2023
1 parent 59e2967 commit 82fab11
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
type=ref,event=branch
type=ref,event=tag
type=sha,prefix=
- name: Build and push image
uses: docker/build-push-action@v4
with:
Expand All @@ -49,6 +50,14 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max

- name: Install singularity
run: sudo apt-get install -y apptainer

- name: Test image by running help
run: singularity exec docker://ghcr.io/stackhpc/io500-singularity:$IMAGE_SHA -h
env:
IMAGE_SHA: ${{ fromJSON(steps.image-meta.outputs.json).labels['org.opencontainers.image.sha'] }}

# Temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
Expand Down

0 comments on commit 82fab11

Please sign in to comment.