|
|
@@ -33,7 +33,7 @@ import (
|
|
|
|
|
|
func TestLocalComposeBuild(t *testing.T) {
|
|
|
|
|
|
- for _, env := range []string{"DOCKER_BUILDKIT=0", "DOCKER_BUILDKIT=1", "DOCKER_BUILDKIT=1,COMPOSE-BAKE=1"} {
|
|
|
+ for _, env := range []string{"DOCKER_BUILDKIT=0", "DOCKER_BUILDKIT=1", "DOCKER_BUILDKIT=1,COMPOSE_BAKE=1"} {
|
|
|
c := NewCLI(t, WithEnv(strings.Split(env, ",")...))
|
|
|
|
|
|
t.Run(env+" build named and unnamed images", func(t *testing.T) {
|
|
|
@@ -118,7 +118,7 @@ func TestLocalComposeBuild(t *testing.T) {
|
|
|
})
|
|
|
|
|
|
t.Run(env+" rebuild when up --build", func(t *testing.T) {
|
|
|
- res := c.RunDockerComposeCmd(t, "--workdir", "fixtures/build-test", "up", "-d", "--build")
|
|
|
+ res := c.RunDockerComposeCmd(t, "--project-directory", "fixtures/build-test", "up", "-d", "--build")
|
|
|
|
|
|
res.Assert(t, icmd.Expected{Out: "COPY static /usr/share/nginx/html"})
|
|
|
res.Assert(t, icmd.Expected{Out: "COPY static2 /usr/share/nginx/html"})
|