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"
]
}
Currently
bake --pushwill 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
footag but not thebarone: