Skip to content

Commit d75c14b

Browse files
committed
feat: test build-arg local env value pass-through
1 parent f59016b commit d75c14b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/build.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ func Build(o *option.Option) {
104104
stdErr := command.Stderr(o, "build", "-f", dockerFilePath, "--no-cache", "--progress=plain",
105105
"--build-arg", "VERSION=3.13", buildContext)
106106
gomega.Expect(stdErr).Should(gomega.ContainSubstring("public.ecr.aws/docker/library/alpine:3.13"))
107+
os.Setenv("VERSION", "3.13")
108+
stdErr = command.Stderr(o, "build", "-f", dockerFilePath, "--no-cache", "--progress=plain",
109+
"--build-arg", "VERSION", buildContext)
110+
gomega.Expect(stdErr).Should(gomega.ContainSubstring("public.ecr.aws/docker/library/alpine:3.13"))
107111
})
108112

109113
ginkgo.It("build image with --progress=plain", func() {

0 commit comments

Comments
 (0)