Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: set build ref in response #2263

Merged
merged 1 commit into from
Feb 23, 2024
Merged

Conversation

crazy-max
Copy link
Member

Sets buildx.build.ref in the metadata file.

$ docker buildx build . --metadata-file md.json
...
$ cat md.json
{
  "buildx.build.ref": "default/default/0fjb6ubs52xx3vygf6fgdl611",
  "containerimage.config.digest": "sha256:9651cc2b3c508f697c9c43b67b64c8359c2865c019e680aac1c11f4b875b67e0",
  "containerimage.digest": "sha256:9651cc2b3c508f697c9c43b67b64c8359c2865c019e680aac1c11f4b875b67e0"
}
$ docker buildx bake validate --metadata-file md.json
...
$ cat md.json
{
  "lint": {
    "buildx.build.ref": "default/default/kamngmcgyzebqxwu98b4lfv3n"
  },
  "validate-docs": {
    "buildx.build.ref": "default/default/w1spi3ss9vnatnkznc4fw0btd"
  },
  "validate-vendor": {
    "buildx.build.ref": "default/default/lc2ohlly0xkvop06y81fzyiag"
  }
}

@crazy-max crazy-max merged commit ae0a5e4 into docker:master Feb 23, 2024
65 checks passed
@crazy-max crazy-max deleted the resp-build-ref branch February 23, 2024 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants