do not use the git repo as context
This commit is contained in:
parent
20604dff3d
commit
a6add78a97
|
|
@ -286,7 +286,7 @@ func TestBuildViaRegistryMirror(t *testing.T) {
|
|||
|
||||
// Build with kaniko
|
||||
kanikoImage := GetKanikoImage(config.imageRepo, "Dockerfile_test_git")
|
||||
dockerfile = "integration/dockerfiles/Dockerfile_registry_3"
|
||||
dockerfile = "integration/dockerfiles/Dockerfile_registry_mirror"
|
||||
kanikoCmd := exec.Command("docker",
|
||||
append([]string{"run",
|
||||
"-v", os.Getenv("HOME") + "/.config/gcloud:/root/.config/gcloud",
|
||||
|
|
@ -294,7 +294,8 @@ func TestBuildViaRegistryMirror(t *testing.T) {
|
|||
"-f", dockerfile,
|
||||
"-d", kanikoImage,
|
||||
"--registry-mirror", "gcr.io",
|
||||
"-c", fmt.Sprintf("git://%s", repo)})...)
|
||||
contextFlag, contextPath
|
||||
"-b", config.gcsBucket)...)
|
||||
|
||||
out, err = RunCommandWithoutTest(kanikoCmd)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue