build: set build ref in response by crazy-max · Pull Request #2263 · docker/buildx (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation0 Commits1 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

crazy-max

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"
  }
}

tonistiigi

@crazy-max

Signed-off-by: CrazyMax 1951866+crazy-max@users.noreply.github.com

2 participants

@crazy-max @tonistiigi