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