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
5454 id : build
5555 uses : docker/build-push-action@v6.18.0
5656 with :
57+ file : ./docker/Dockerfile
5758 platforms : ${{ matrix.platform }}
5859 labels : ${{ steps.meta.outputs.labels }}
59- tags : ghcr.io/${{ github.repository }}
60+ tags : ghcr.io/${{ vars.ORG_REPO }}/${{ github.event. repository.name }}
6061 outputs : type=image,push-by-digest=true,name-canonical=true,push=true
6162
6263 - name : Export digest
@@ -102,7 +103,7 @@ jobs:
102103 id : meta
103104 uses : docker/metadata-action@v5.8.0
104105 with :
105- images : ghcr.io/${{ github.repository }}
106+ images : ghcr.io/${{ vars.ORG_REPO }}/${{ github.event. repository.name }}
106107 tags : dev
107108
108109 - name : Create manifest list and push
@@ -116,18 +117,18 @@ jobs:
116117 --annotation='index:org.opencontainers.image.created=${{ steps.timestamp.outputs.timestamp }}' \
117118 --annotation='index:org.opencontainers.image.url=${{ github.event.repository.url }}' \
118119 --annotation='index:org.opencontainers.image.source=${{ github.event.repository.url }}' \
119- $(printf 'ghcr.io/${{ github.repository }}@sha256:%s ' *)
120+ $(printf 'ghcr.io/${{ vars.ORG_REPO }}/${{ github.event. repository.name }}@sha256:%s ' *)
120121
121122 - name : Create manifest list and push without annotations
122123 if : steps.annotate.outcome == 'failure'
123124 working-directory : ${{ runner.temp }}/digests
124125 run : |
125126 docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
126- $(printf 'ghcr.io/${{ github.repository }}@sha256:%s ' *)
127+ $(printf 'ghcr.io/${{ vars.ORG_REPO }}/${{ github.event. repository.name }}@sha256:%s ' *)
127128
128129 - name : Inspect image
129130 run : |
130- docker buildx imagetools inspect ghcr.io/${{ github.repository }}:dev
131+ docker buildx imagetools inspect ghcr.io/${{ vars.ORG_REPO }}/${{ github.event. repository.name }}:dev
131132
132133 tests :
133134 strategy :
@@ -147,9 +148,9 @@ jobs:
147148 - name : Test notebooks
148149 shell : bash
149150 run : |
150- docker run -t ghcr.io/${{ github.repository }}:dev bash -c " \
151+ docker run -t ghcr.io/${{ vars.ORG_REPO }}/${{ github.event. repository.name }}:dev bash -c " \
151152 pip install pytest nbmake; \
152- find . -name '*.ipynb' | pytest --nbmake --nbmake-timeout=3600; "
153+ find . -name '*.ipynb' | pytest --nbmake --nbmake-timeout=3600;"
153154
154155 tags :
155156 runs-on : ubuntu-24.04
@@ -171,9 +172,9 @@ jobs:
171172 shell : bash
172173 run : |
173174 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
175+ --tag ghcr.io/${{ vars.ORG_REPO }}/${{ github.event. repository.name }}:latest \
176+ --tag ghcr.io/${{ vars.ORG_REPO }}/${{ github.event. repository.name }}:${{ needs.build.outputs.tag }} \
177+ ghcr.io/${{ vars.ORG_REPO }}/${{ github.event. repository.name }}:dev
177178
178179 - name : Post version update to dash
179180 uses : peter-evans/repository-dispatch@v3.0.0
0 commit comments