From 45130996a05c8dd849c39abbd5d7069ceeb13574 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 3 Nov 2020 12:55:56 +0100 Subject: [PATCH] ci: flatten images for internal consumption There is no need to re-use different layers with the images that are built. The separation of the layers causes more time to be used while pulling the images, so flattening makes speeds up the CI jobs a little (about 30 seconds from 2+ minutes). Signed-off-by: Niels de Vos --- deploy/ceph-csi-buildconfig.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deploy/ceph-csi-buildconfig.yaml b/deploy/ceph-csi-buildconfig.yaml index 765ca7bd1..4a2d6fd67 100644 --- a/deploy/ceph-csi-buildconfig.yaml +++ b/deploy/ceph-csi-buildconfig.yaml @@ -17,6 +17,7 @@ spec: strategy: dockerStrategy: dockerfilePath: deploy/cephcsi/image/Dockerfile + imageOptimizationPolicy: SkipLayers output: to: kind: DockerImage @@ -42,6 +43,7 @@ spec: strategy: dockerStrategy: dockerfilePath: scripts/Dockerfile.test + imageOptimizationPolicy: SkipLayers output: to: kind: DockerImage @@ -67,6 +69,7 @@ spec: strategy: dockerStrategy: dockerfilePath: scripts/Dockerfile.devel + imageOptimizationPolicy: SkipLayers output: to: kind: DockerImage