Run travis task with/without buildkit

This commit is contained in:
Daniele Rondina
2020-11-07 11:41:44 +01:00
parent 4048138dcb
commit d219a2e0fb
3 changed files with 4 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ RUN echo bar > /test2`))
Expect(helpers.Exists(filepath.Join(tmpdir, "output2.tar"))).To(BeTrue())
artifacts := []ArtifactNode{}
if os.Getenv("DOCKER_BUILDKIT") != "" {
if os.Getenv("DOCKER_BUILDKIT") == "1" {
artifacts = append(artifacts, ArtifactNode{Name: "/etc/resolv.conf", Size: 0})
}
artifacts = append(artifacts, ArtifactNode{Name: "/test", Size: 4})