Skip to content

Commit bd5defc

Browse files
authored
Merge pull request #1 from CCPBioSim/migration-changes
Update build.yaml
2 parents 8024507 + e3cc7e4 commit bd5defc

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/build.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
id: meta
3737
uses: docker/metadata-action@v5.8.0
3838
with:
39-
images: ghcr.io/${{ github.repository }}
39+
images: ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}
4040

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

6262
- name: Export digest
@@ -102,7 +102,7 @@ jobs:
102102
id: meta
103103
uses: docker/metadata-action@v5.8.0
104104
with:
105-
images: ghcr.io/${{ github.repository }}
105+
images: ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}
106106
tags: dev
107107

108108
- name: Create manifest list and push
@@ -116,18 +116,18 @@ jobs:
116116
--annotation='index:org.opencontainers.image.created=${{ steps.timestamp.outputs.timestamp }}' \
117117
--annotation='index:org.opencontainers.image.url=${{ github.event.repository.url }}' \
118118
--annotation='index:org.opencontainers.image.source=${{ github.event.repository.url }}' \
119-
$(printf 'ghcr.io/${{ github.repository }}@sha256:%s ' *)
119+
$(printf 'ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}@sha256:%s ' *)
120120
121121
- name: Create manifest list and push without annotations
122122
if: steps.annotate.outcome == 'failure'
123123
working-directory: ${{ runner.temp }}/digests
124124
run: |
125125
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
126-
$(printf 'ghcr.io/${{ github.repository }}@sha256:%s ' *)
126+
$(printf 'ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}@sha256:%s ' *)
127127
128128
- name: Inspect image
129129
run: |
130-
docker buildx imagetools inspect ghcr.io/${{ github.repository }}:dev
130+
docker buildx imagetools inspect ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}:dev
131131
132132
tests:
133133
strategy:
@@ -147,7 +147,7 @@ jobs:
147147
- name: Test notebooks
148148
shell: bash
149149
run: |
150-
docker run -t ghcr.io/${{ github.repository }}:dev bash -c " \
150+
docker run -t ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}:dev bash -c " \
151151
pip install pytest nbmake; \
152152
find . -name '*.ipynb' | pytest --nbmake --nbmake-timeout=3600; "
153153
@@ -171,9 +171,9 @@ jobs:
171171
shell: bash
172172
run: |
173173
docker buildx imagetools create \
174-
--tag ghcr.io/${{ github.repository }}:latest \
175-
--tag ghcr.io/${{ github.repository }}:${{ needs.build.outputs.tag }} \
176-
ghcr.io/${{ github.repository }}:dev
174+
--tag ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}:latest \
175+
--tag ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}:${{ needs.build.outputs.tag }} \
176+
ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}:dev
177177
178178
- name: Post version update to dash
179179
uses: peter-evans/repository-dispatch@v3.0.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
CCPBioSim Structure Validation Workshop
22
=======================================
33

4-
[![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)
4+
[![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)
55

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

0 commit comments

Comments
 (0)