Open ToshY opened 10 hours ago
it somehow is missing the digest in the repository.
I think this is because GitHub package page doesn't show untagged manifests but as you can see in https://github.com/ToshY/docker-php/pkgs/container/php/versions?filters%5Bversion_type%5D=untagged, you have the untagged ones.
I think this is because GitHub package page doesn't show untagged manifests but as you can see in https://github.com/ToshY/docker-php/pkgs/container/php/versions?filters%5Bversion_type%5D=untagged, you have the untagged ones.
I can find the other digests in the untagged
section, but the ones that it job fails on, like 74f195f9c7da97b1ba2837033fc9b9727e984902410e42e7589ab5038cf60934
, are not there (neither page 1 or 2), or am I missing something here?
Also looking at the bake definition of one of the builds: https://github.com/ToshY/docker-php/actions/runs/12018392473/job/33502793735#step:6:262
{
"group": {
"default": {
"targets": [
"php-8-4-1-fpm-bookworm-base",
"php-8-4-1-fpm-bookworm-ffmpeg"
]
}
},
"target": {
"php-8-4-1-fpm-bookworm-base": {
"attest": [
"type=provenance,builder-id=https://github.com/ToshY/docker-php/actions/runs/12018392473/attempts/1"
],
"context": ".",
"contexts": {
"php-base": "docker-image://php:8.4.1-fpm-bookworm"
},
"dockerfile": "Dockerfile",
"labels": {
"org.opencontainers.image.created": "2024-11-25T20:39:36Z",
"org.opencontainers.image.revision": "7e0a2cd091f5b7ff41cb9cff8c23a6187c656622",
"org.opencontainers.image.vendor": "ToshY",
"org.opencontainers.image.version": "main"
},
"cache-from": [
"type=gha,scope=php-8-4-1-fpm-bookworm-base-refs/heads/main-linux/arm64"
],
"cache-to": [
"type=gha,scope=php-8-4-1-fpm-bookworm-base-refs/heads/main-linux/arm64,ignore-error=true"
],
"target": "base",
"platforms": [
"linux/arm64"
],
"output": [
"type=image,\"name=ghcr.io/toshy/php\",push-by-digest=true,name-canonical=true,push=true"
]
},
"php-8-4-1-fpm-bookworm-ffmpeg": {
"attest": [
"type=provenance,builder-id=https://github.com/ToshY/docker-php/actions/runs/12018392473/attempts/1"
],
"context": ".",
"contexts": {
"php-base": "docker-image://php:8.4.1-fpm-bookworm"
},
"dockerfile": "Dockerfile",
"labels": {
"org.opencontainers.image.created": "2024-11-25T20:39:36Z",
"org.opencontainers.image.revision": "7e0a2cd091f5b7ff41cb9cff8c23a6187c656622",
"org.opencontainers.image.vendor": "ToshY",
"org.opencontainers.image.version": "main"
},
"cache-from": [
"type=gha,scope=php-8-4-1-fpm-bookworm-ffmpeg-refs/heads/main-linux/arm64"
],
"cache-to": [
"type=gha,scope=php-8-4-1-fpm-bookworm-ffmpeg-refs/heads/main-linux/arm64,ignore-error=true"
],
"target": "ffmpeg",
"platforms": [
"linux/arm64"
],
"output": [
"type=image,\"name=ghcr.io/toshy/php\",push-by-digest=true,name-canonical=true,push=true"
]
}
}
}
It's building a group of targets but I see you're managing digests for each target already in https://github.com/ToshY/docker-php/actions/runs/12018392473/workflow#L211-L222
Looking again at the build of php-8-4-1-fpm-bookworm-ffmpeg
https://github.com/ToshY/docker-php/actions/runs/12018392473/job/33502793735#step:6:8710, I can see the manifest on GHCR: https://github.com/ToshY/docker-php/pkgs/container/php/311893970 so maybe there is something wrong for other builds or exporting digests logic in your workflow.
like
74f195f9c7da97b1ba2837033fc9b9727e984902410e42e7589ab5038cf60934
, are not there (neither page 1 or 2), or am I missing something
Can you show in your logs where this digest comes from?
like
74f195f9c7da97b1ba2837033fc9b9727e984902410e42e7589ab5038cf60934
, are not there (neither page 1 or 2), or am I missing somethingCan you show in your logs where this digest comes from?
https://github.com/ToshY/docker-php/actions/runs/12018392473/job/33502789448#step:6:5153
Contributing guidelines
I've found a bug, and:
Description
An error occurs when performing
docker buildx imagetools create
that uses a digest that should have been previously pushed to GHCR by thedocker/bake-action
. While the action completed succesfully, and the digests were also uploaded as artifacts usingactions/upload-artifact
(here), it somehow is missing the digest in the repository.I do not see anything particular in the logs that should denote that something went wrong when pushing the digest.
Expected behaviour
The digests uploads sucessfully.
Actual behaviour
Missing digests in repository.
Repository URL
https://github.com/ToshY/docker-php/pkgs/container/php
Workflow run URL
https://github.com/ToshY/docker-php/actions/runs/12018392473/job/33504558363
YAML workflow
Workflow logs
See job runs:
BuildKit logs
Additional info
Workflow based on: