Skip to content

Commit

Permalink
feat: test build-arg local env value pass-through
Browse files Browse the repository at this point in the history
Signed-off-by: Ziwen Ning <[email protected]>
  • Loading branch information
ningziwen committed Jan 26, 2023
1 parent f59016b commit b29bf9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ func Build(o *option.Option) {
stdErr := command.Stderr(o, "build", "-f", dockerFilePath, "--no-cache", "--progress=plain",
"--build-arg", "VERSION=3.13", buildContext)
gomega.Expect(stdErr).Should(gomega.ContainSubstring("public.ecr.aws/docker/library/alpine:3.13"))
gomega.Expect(os.Setenv("VERSION", "3.13")).To(gomega.Succeed())
stdErr = command.Stderr(o, "build", "-f", dockerFilePath, "--no-cache", "--progress=plain",
"--build-arg", "VERSION", buildContext)
gomega.Expect(stdErr).Should(gomega.ContainSubstring("public.ecr.aws/docker/library/alpine:3.13"))
})

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

0 comments on commit b29bf9a

Please sign in to comment.