From a9e7da4cdccfd1830746336610b3f4fbc91892ce Mon Sep 17 00:00:00 2001 From: Kartik Verma <3920286+vkartik97@users.noreply.github.com> Date: Tue, 2 Oct 2018 16:42:11 +0530 Subject: [PATCH] Added Integration Tests --- integration/dockerfiles/Dockerfile_test_git | 2 ++ integration/images.go | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 integration/dockerfiles/Dockerfile_test_git diff --git a/integration/dockerfiles/Dockerfile_test_git b/integration/dockerfiles/Dockerfile_test_git new file mode 100644 index 000000000..c1a92ea80 --- /dev/null +++ b/integration/dockerfiles/Dockerfile_test_git @@ -0,0 +1,2 @@ +FROM scratch +COPY LICENSE /LICENSE \ No newline at end of file diff --git a/integration/images.go b/integration/images.go index cf1f90105..9a5d55595 100644 --- a/integration/images.go +++ b/integration/images.go @@ -63,7 +63,7 @@ var additionalKanikoFlagsMap = map[string][]string{ "Dockerfile_test_target": {"--target=second"}, } -var bucketContextTests = []string{"Dockerfile_test_copy_bucket"} +var gitRepoTests = []string{"Dockerfile_test_git"} var reproducibleTests = []string{"Dockerfile_test_reproducible"} // GetDockerImage constructs the name of the docker image that would be built with @@ -162,10 +162,10 @@ func (d *DockerFileBuilder) BuildImage(imageRepo, gcsBucket, dockerfilesPath, do contextFlag := "-c" contextPath := buildContextPath - for _, d := range bucketContextTests { + for _, d := range gitRepoTests { if d == dockerfile { contextFlag = "-b" - contextPath = gcsBucket + contextPath = "https://github.com/GoogleContainerTools/kaniko" break } }