bake(e2e): simple test for sync-output flag
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>pull/1197/head
parent
d52c6230c0
commit
048e6ac1f7
@ -0,0 +1 @@
|
||||
/out
|
@ -0,0 +1,5 @@
|
||||
FROM busybox
|
||||
RUN echo bar > /bar
|
||||
|
||||
FROM scratch
|
||||
COPY --from=0 /bar /bar
|
@ -0,0 +1,13 @@
|
||||
group "default" {
|
||||
targets = ["foo", "bar"]
|
||||
}
|
||||
|
||||
target "foo" {
|
||||
dockerfile = "foo.Dockerfile"
|
||||
output = ["out"]
|
||||
}
|
||||
|
||||
target "bar" {
|
||||
dockerfile = "bar.Dockerfile"
|
||||
output = ["out"]
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
FROM busybox
|
||||
RUN echo foo > /foo
|
||||
|
||||
FROM scratch
|
||||
COPY --from=0 /foo /foo
|
@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
rm -rf ./out
|
||||
|
||||
docker buildx bake --print
|
||||
docker buildx bake --sync-output
|
||||
|
||||
if [[ ! -f ./out/foo || ! -f ./out/bar ]]; then
|
||||
echo >&2 "error: missing output files"
|
||||
exit 1
|
||||
fi
|
Loading…
Reference in New Issue