Option to only tag images at end of bake
Open
@jedevc is already working on this.
Since Jul 4, 2022.
area/bake
- Dominant language
- Go
- Stars
- 4.5k
- Forks
- 682
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 29
Description
Currently bake --push will tag images in the remote registry as they are completed. This can be an issue if later images in the same high-level build error out.
Either the default behaviour could change, or a CLI option could be added that forces tagging to only happen at the end - I don't think pushing new layers would need to be held back.
This example results in a foo tag but not the bar one:
FROM alpine:3.15 as foo
FROM alpine:3.15 as bar
RUN sleep 30 && exit 1
group "default" {
targets = ["foo", "bar"]
}
target "foo" {
target = "foo"
tags = [
"ciaranmcnulty/test:foo"
]
}
target "bar" {
target = "bar"
tags = [
"ciaranmcnulty/test:bar"
]
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.