mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-30 02:00:19 +00:00
45130996a0
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>
79 lines
1.7 KiB
YAML
79 lines
1.7 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: BuildConfig
|
|
metadata:
|
|
name: ceph-csi-canary
|
|
labels:
|
|
app: ceph-csi
|
|
spec:
|
|
runPolicy: Serial
|
|
successfulBuildsHistoryLimit: 1
|
|
failedBuildsHistoryLimit: 1
|
|
source:
|
|
git:
|
|
uri: https://github.com/ceph/ceph-csi
|
|
ref: master
|
|
contextDir: .
|
|
strategy:
|
|
dockerStrategy:
|
|
dockerfilePath: deploy/cephcsi/image/Dockerfile
|
|
imageOptimizationPolicy: SkipLayers
|
|
output:
|
|
to:
|
|
kind: DockerImage
|
|
name: registry-ceph-csi.apps.ocp.ci.centos.org/ceph-csi:canary
|
|
pushSecret:
|
|
name: container-registry-auth
|
|
---
|
|
apiVersion: v1
|
|
kind: BuildConfig
|
|
metadata:
|
|
name: ceph-csi-test
|
|
labels:
|
|
app: ceph-csi
|
|
spec:
|
|
runPolicy: Serial
|
|
successfulBuildsHistoryLimit: 1
|
|
failedBuildsHistoryLimit: 1
|
|
source:
|
|
git:
|
|
uri: https://github.com/ceph/ceph-csi
|
|
ref: master
|
|
contextDir: .
|
|
strategy:
|
|
dockerStrategy:
|
|
dockerfilePath: scripts/Dockerfile.test
|
|
imageOptimizationPolicy: SkipLayers
|
|
output:
|
|
to:
|
|
kind: DockerImage
|
|
name: registry-ceph-csi.apps.ocp.ci.centos.org/ceph-csi:test
|
|
pushSecret:
|
|
name: container-registry-auth
|
|
---
|
|
apiVersion: v1
|
|
kind: BuildConfig
|
|
metadata:
|
|
name: ceph-csi-devel
|
|
labels:
|
|
app: ceph-csi
|
|
spec:
|
|
runPolicy: Serial
|
|
successfulBuildsHistoryLimit: 1
|
|
failedBuildsHistoryLimit: 1
|
|
source:
|
|
git:
|
|
uri: https://github.com/ceph/ceph-csi
|
|
ref: master
|
|
contextDir: .
|
|
strategy:
|
|
dockerStrategy:
|
|
dockerfilePath: scripts/Dockerfile.devel
|
|
imageOptimizationPolicy: SkipLayers
|
|
output:
|
|
to:
|
|
kind: DockerImage
|
|
name: registry-ceph-csi.apps.ocp.ci.centos.org/ceph-csi:devel
|
|
pushSecret:
|
|
name: container-registry-auth
|