mirror of
https://github.com/containers/podman.git
synced 2025-12-06 05:37:49 +08:00
@@ -668,6 +668,25 @@ EOF
|
|||||||
run_podman rmi -f build_test
|
run_podman rmi -f build_test
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Regression test for #20259
|
||||||
|
@test "podman build with ignore '*' and containerfile outside of build context" {
|
||||||
|
local tmpdir=$PODMAN_TMPDIR/build-test-$(random_string 10)
|
||||||
|
mkdir -p $tmpdir
|
||||||
|
mkdir -p $tmpdir/context
|
||||||
|
|
||||||
|
cat >$tmpdir/Containerfile <<EOF
|
||||||
|
FROM scratch
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cat >$tmpdir/context/.containerignore <<EOF
|
||||||
|
*
|
||||||
|
EOF
|
||||||
|
run_podman build -t build_test -f $tmpdir/Containerfile $tmpdir/context
|
||||||
|
|
||||||
|
# Clean up
|
||||||
|
run_podman rmi -f build_test
|
||||||
|
}
|
||||||
|
|
||||||
@test "podman build - stdin test" {
|
@test "podman build - stdin test" {
|
||||||
# Random workdir, and random string to verify build output
|
# Random workdir, and random string to verify build output
|
||||||
workdir=/$(random_string 10)
|
workdir=/$(random_string 10)
|
||||||
|
|||||||
Reference in New Issue
Block a user