use opendev image building system for zuul-operator test

Depends-On: https://review.opendev.org/#/c/673351/

Change-Id: I12bde1fbe892273c458f11e568402d1b53073a41
This commit is contained in:
Jeff Liu 2019-07-26 13:00:46 -04:00
parent 8f34db1319
commit 5637d13f1f
4 changed files with 20 additions and 9 deletions

View File

@ -9,10 +9,26 @@
required-projects:
- zuul/zuul-operator
- job:
description: |
Build's Zuul operator image taken from buildset registry
name: zuul-operator-build-image
parent: opendev-build-docker-image
allowed-projects: zuul/zuul-operator
vars:
zuul_work_dir: "{{ zuul.projects['opendev.org/zuul/zuul-operator'].src_dir }}"
docker_images:
- context: .
dockerfile: build/Dockerfile
repository: zuul/zuul-operator
- project:
check:
jobs:
- zuul-operator-functional-k8s
- zuul-operator-build-image
- zuul-operator-functional-k8s:
dependencies: zuul-operator-build-image
gate:
jobs:
- zuul-operator-functional-k8s
- zuul-operator-build-image
- zuul-operator-functional-k8s:
dependencies: zuul-operator-build-image

View File

@ -22,14 +22,12 @@ spec:
- stdout
# TODO: use a public name
image: "zuul/zuul-operator"
imagePullPolicy: "Never"
volumeMounts:
- mountPath: /tmp/ansible-operator/runner
name: runner
readOnly: true
- name: operator
image: "zuul/zuul-operator"
imagePullPolicy: "Never"
volumeMounts:
- mountPath: /tmp/ansible-operator/runner
name: runner

View File

@ -5,4 +5,6 @@
- role: bindep
- role: clear-firewall
- role: install-kubernetes
- role: use-buildset-registry
buildset_registry_docker_user: root
docker_version: 18.06.1~ce~3-0~ubuntu

View File

@ -6,11 +6,6 @@
set_fact:
RELEASE_VERSION: v0.8.1
- name: Build operator
command: docker build -f build/Dockerfile -t zuul/zuul-operator .
args:
chdir: "{{ zuul.projects['opendev.org/zuul/zuul-operator'].src_dir }}"
- name: Setup CRD
command: kubectl create -f deploy/crds/zuul-ci_v1alpha1_zuul_crd.yaml
args: