Added Integration Tests

This commit is contained in:
Kartik Verma 2018-10-02 16:42:11 +05:30
parent 30640261d2
commit a9e7da4cdc
No known key found for this signature in database
GPG Key ID: 85105D63569707BE
2 changed files with 5 additions and 3 deletions

View File

@ -0,0 +1,2 @@
FROM scratch
COPY LICENSE /LICENSE

View File

@ -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
}
}