mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-26 16:20:28 +00:00
ci: add BuildConfig for ceph-csi container images
The BuildConfig can be imported in the OpenShift environment so that Ceph-CSI images can be built automatically. These images will be cached in a private container image registry, which can speed up CI jobs that currently rebuild the images every time. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
b5216592e2
commit
5dc6045034
75
deploy/ceph-csi-buildconfig.yaml
Normal file
75
deploy/ceph-csi-buildconfig.yaml
Normal file
@ -0,0 +1,75 @@
|
||||
---
|
||||
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
|
||||
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
|
||||
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
|
||||
output:
|
||||
to:
|
||||
kind: DockerImage
|
||||
name: registry-ceph-csi.apps.ocp.ci.centos.org/ceph-csi:devel
|
||||
pushSecret:
|
||||
name: container-registry-auth
|
Loading…
Reference in New Issue
Block a user