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 <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-11-03 12:55:56 +01:00 committed by mergify[bot]
parent 9c4009bd14
commit 45130996a0

View File

@ -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