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
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
0 commit comments