fix: Now deploy secrects in k8s and app building works
This commit is contained in:
@@ -402,6 +402,7 @@ func buildImage(tags []string, dockerfileLocation string) error {
|
|||||||
Image: "gcr.io/kaniko-project/executor:latest",
|
Image: "gcr.io/kaniko-project/executor:latest",
|
||||||
Args: []string{
|
Args: []string{
|
||||||
"--verbosity=debug",
|
"--verbosity=debug",
|
||||||
|
"--log-format=text",
|
||||||
"--dockerfile=Dockerfile",
|
"--dockerfile=Dockerfile",
|
||||||
"--context=dir://" + contextDir,
|
"--context=dir://" + contextDir,
|
||||||
"--skip-tls-verify",
|
"--skip-tls-verify",
|
||||||
@@ -412,6 +413,10 @@ func buildImage(tags []string, dockerfileLocation string) error {
|
|||||||
Name: "kaniko-workspace",
|
Name: "kaniko-workspace",
|
||||||
MountPath: "/app/generated",
|
MountPath: "/app/generated",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Name: "docker-config",
|
||||||
|
MountPath: "/kaniko/.docker/",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -426,6 +431,20 @@ func buildImage(tags []string, dockerfileLocation string) error {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Name: "docker-config",
|
||||||
|
VolumeSource: corev1.VolumeSource{
|
||||||
|
Secret: &corev1.SecretVolumeSource{
|
||||||
|
SecretName: os.Getenv("SHUFFLE_REGISTRY_SECRET"),
|
||||||
|
Items: []corev1.KeyToPath{
|
||||||
|
{
|
||||||
|
Key: ".dockerconfigjson",
|
||||||
|
Path: "config.json",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user