Skip to content

Commit d423b7b

Browse files
authored
Update build.yaml
1 parent 444518f commit d423b7b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/build.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
id: meta
3333
uses: docker/metadata-action@v5.8.0
3434
with:
35-
images: ghcr.io/${{ github.repository }}
35+
images: ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}
3636

3737
- name: Authenticate with GHCR
3838
id: auth
@@ -52,7 +52,7 @@ jobs:
5252
with:
5353
platforms: ${{ matrix.platform }}
5454
labels: ${{ steps.meta.outputs.labels }}
55-
tags: ghcr.io/${{ github.repository }}
55+
tags: ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}
5656
outputs: type=image,push-by-digest=true,name-canonical=true,push=true
5757

5858
- name: Export digest
@@ -97,7 +97,7 @@ jobs:
9797
id: meta
9898
uses: docker/metadata-action@v5.8.0
9999
with:
100-
images: ghcr.io/${{ github.repository }}
100+
images: ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}
101101
tags: |
102102
latest
103103
${{ needs.build.outputs.tag }}
@@ -113,18 +113,18 @@ jobs:
113113
--annotation='index:org.opencontainers.image.created=${{ steps.timestamp.outputs.timestamp }}' \
114114
--annotation='index:org.opencontainers.image.url=${{ github.event.repository.url }}' \
115115
--annotation='index:org.opencontainers.image.source=${{ github.event.repository.url }}' \
116-
$(printf 'ghcr.io/${{ github.repository }}@sha256:%s ' *)
116+
$(printf 'ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}@sha256:%s ' *)
117117
118118
- name: Create manifest list and push without annotations
119119
if: steps.annotate.outcome == 'failure'
120120
working-directory: ${{ runner.temp }}/digests
121121
run: |
122122
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
123-
$(printf 'ghcr.io/${{ github.repository }}@sha256:%s ' *)
123+
$(printf 'ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}@sha256:%s ' *)
124124
125125
- name: Inspect image
126126
run: |
127-
docker buildx imagetools inspect ghcr.io/${{ github.repository }}:${{ needs.build.outputs.tag }}
127+
docker buildx imagetools inspect ghcr.io/${{ vars.ORG_REPO }}/${{ github.event.repository.name }}:${{ needs.build.outputs.tag }}
128128
129129
- name: Post version update to dash
130130
uses: peter-evans/repository-dispatch@v3.0.0

0 commit comments

Comments
 (0)