Skip to content

Commit 9d137cf

Browse files
authored
fix: GHCR attestation example by listing GHCR first in metadata images
The attestation step targets GHCR, but docker/build-push-action exposes the digest for the first image produced by docker/metadata-action. The previous doc snippet listed Docker Hub first, so the attestation attempted to fetch a Docker Hub digest from GHCR, resulting in 404.
1 parent aba155a commit 9d137cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/actions/tutorials/publish-packages/publish-docker-images.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ jobs:
215215
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
216216
with:
217217
images: |
218-
my-docker-hub-namespace/my-docker-hub-repository
219218
{% data reusables.package_registry.container-registry-hostname %}/{% raw %}${{ github.repository }}{% endraw %}
219+
my-docker-hub-namespace/my-docker-hub-repository
220220
221221
- name: Build and push Docker images
222222
id: push

0 commit comments

Comments
 (0)