Build "master" images in "main" (#1090)
Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
diff --git a/zuul.d/container-images/ovn.yaml b/zuul.d/container-images/ovn.yaml
new file mode 100644
index 0000000..67eaaec
--- /dev/null
+++ b/zuul.d/container-images/ovn.yaml
@@ -0,0 +1,70 @@
+# Copyright (c) 2024 VEXXHOST, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+- project:
+ check:
+ jobs:
+ - atmosphere-build-container-image-ovn
+ gate:
+ jobs:
+ - atmosphere-upload-container-image-ovn
+ promote:
+ jobs:
+ - atmosphere-promote-container-image-ovn
+
+- job:
+ name: atmosphere-build-container-image-ovn
+ parent: atmosphere-build-container-image
+ dependencies:
+ - name: atmosphere-build-container-image-openvswitch
+ soft: true
+ vars: &container_image_vars
+ promote_container_image_job: atmosphere-upload-container-image-ovn
+ container_images:
+ - context: images/ovn
+ registry: registry.atmosphere.dev
+ repository: registry.atmosphere.dev/library/ovn-central
+ arch:
+ - linux/amd64
+ build_args:
+ - OVN_COMPONENT=central
+ tags:
+ - main
+ - context: images/ovn
+ registry: registry.atmosphere.dev
+ repository: registry.atmosphere.dev/library/ovn-host
+ arch:
+ - linux/amd64
+ build_args:
+ - OVN_COMPONENT=host
+ tags:
+ - main
+ files: &container_image_files
+ - images/openvswitch/.*
+ - images/ovn/.*
+
+- job:
+ name: atmosphere-upload-container-image-ovn
+ parent: atmosphere-upload-container-image
+ dependencies:
+ - name: atmosphere-upload-container-image-openvswitch
+ soft: true
+ vars: *container_image_vars
+ files: *container_image_files
+
+- job:
+ name: atmosphere-promote-container-image-ovn
+ parent: atmosphere-promote-container-image
+ vars: *container_image_vars
+ files: *container_image_files