diff --git a/tests/bake.go b/tests/bake.go index 7e17aa53..facd07e9 100644 --- a/tests/bake.go +++ b/tests/bake.go @@ -21,6 +21,7 @@ func bakeCmd(sb integration.Sandbox, dir string, args ...string) (string, error) var bakeTests = []func(t *testing.T, sb integration.Sandbox){ testBakeRemote, testBakeRemoteCmdContext, + testBakeRemoteCmdContextOverride, } func testBakeRemote(t *testing.T, sb integration.Sandbox) { @@ -86,3 +87,43 @@ EOT require.FileExists(t, filepath.Join(dirDest, "foo")) } + +func testBakeRemoteCmdContextOverride(t *testing.T, sb integration.Sandbox) { + bakefile := []byte(` +target "default" { + context = BAKE_CMD_CONTEXT + dockerfile-inline = <