Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5.8.0
with:
images: ghcr.io/${{ github.repository }}
images: ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}

- name: Authenticate with GHCR
id: auth
Expand All @@ -56,7 +56,7 @@ jobs:
with:
platforms: ${{ matrix.platform }}
labels: ${{ steps.meta.outputs.labels }}
tags: ghcr.io/${{ github.repository }}
tags: ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}
outputs: type=image,push-by-digest=true,name-canonical=true,push=true

- name: Export digest
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5.8.0
with:
images: ghcr.io/${{ github.repository }}
images: ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}
tags: dev

- name: Create manifest list and push
Expand All @@ -116,18 +116,18 @@ jobs:
--annotation='index:org.opencontainers.image.created=${{ steps.timestamp.outputs.timestamp }}' \
--annotation='index:org.opencontainers.image.url=${{ github.event.repository.url }}' \
--annotation='index:org.opencontainers.image.source=${{ github.event.repository.url }}' \
$(printf 'ghcr.io/${{ github.repository }}@sha256:%s ' *)
$(printf 'ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}@sha256:%s ' *)

- name: Create manifest list and push without annotations
if: steps.annotate.outcome == 'failure'
working-directory: ${{ runner.temp }}/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf 'ghcr.io/${{ github.repository }}@sha256:%s ' *)
$(printf 'ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}@sha256:%s ' *)

- name: Inspect image
run: |
docker buildx imagetools inspect ghcr.io/${{ github.repository }}:dev
docker buildx imagetools inspect ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}:dev

tests:
strategy:
Expand All @@ -147,7 +147,7 @@ jobs:
- name: Test notebooks
shell: bash
run: |
docker run -t ghcr.io/${{ github.repository }}:dev bash -c " \
docker run -t ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}:dev bash -c " \
pip install pytest nbmake; \
find . -name '*.ipynb' | pytest --nbmake --nbmake-timeout=3600; "

Expand All @@ -171,9 +171,9 @@ jobs:
shell: bash
run: |
docker buildx imagetools create \
--tag ghcr.io/${{ github.repository }}:latest \
--tag ghcr.io/${{ github.repository }}:${{ needs.build.outputs.tag }} \
ghcr.io/${{ github.repository }}:dev
--tag ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}:latest \
--tag ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}:${{ needs.build.outputs.tag }} \
ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}:dev

- name: Post version update to dash
uses: peter-evans/repository-dispatch@v3.0.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CCPBioSim Structure Validation Workshop
=======================================

[![build](https://github.com/jimboid/biosim-structure-validation-workshop/actions/workflows/build.yaml/badge.svg?branch=main)](https://github.com/jimboid/biosim-structure-validation-workshop/actions/workflows/build.yaml)
[![build](https://github.com/ccpbiosim/biosim-structure-validation-workshop/actions/workflows/build.yaml/badge.svg?branch=main)](https://github.com/ccpbiosim/biosim-structure-validation-workshop/actions/workflows/build.yaml)

This container is derived from the CCPBioSim JupyterHub image. This container
adds the necessary software packages and notebook content to form a deployable
Expand Down