mirror of
https://github.com/kairos-io/osbuilder.git
synced 2025-09-06 17:51:35 +00:00
update osbuilder/osartifact
This commit is contained in:
@@ -309,14 +309,19 @@ func (r *OSArtifactReconciler) checkExport(ctx context.Context, artifact *osbuil
|
||||
tag = "latest"
|
||||
}
|
||||
|
||||
image := artifact.Spec.Exporter.Image
|
||||
if len(image) == 0 {
|
||||
image = "gcr.io/kaniko-project/executor:latest"
|
||||
}
|
||||
|
||||
container := corev1.Container{
|
||||
Name: "exporter",
|
||||
Image: "gcr.io/kaniko-project/executor:latest",
|
||||
Args: []string{
|
||||
Image: image,
|
||||
Args: append([]string{
|
||||
"--context=/artifacts/",
|
||||
"--dockerfile=/artifacts/Dockerfile",
|
||||
fmt.Sprintf("--destination=%s/%s:%s", artifact.Spec.Exporter.Registry.Name, artifact.Spec.Exporter.Registry.Image.Repository, tag),
|
||||
},
|
||||
}, artifact.Spec.Exporter.ExtraArgs...),
|
||||
VolumeMounts: []corev1.VolumeMount{
|
||||
{
|
||||
Name: "artifacts",
|
||||
|
Reference in New Issue
Block a user