Files
loci/playbooks/build.yaml
Vladimir Kozhukalov 10539ce036 Fix image build
Recently the build-container-image role was updated to
use buildx by default. One of changes is that the role
now checks if image repository is a full name and
contains '/'.

Change-Id: Ic4a67fb6d74440b0801049638600e6b6fd41e74f
Signed-off-by: Vladimir Kozhukalov <kozhukalov@gmail.com>
2025-09-15 17:53:17 -05:00

48 lines
1.3 KiB
YAML

---
# 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.
- hosts: all[0]
gather_facts: true
roles:
- use-buildset-registry
tasks:
- name: Vars
include_vars:
file: "vars.yaml"
- name: Job vars
include_vars:
file: "{{ item }}"
loop: "{{ vars_files }}"
- name: Ensure dep files are sorted
shell: "grep -v '^#' ./{{ item }} | sort --check"
loop:
- "bindep.txt"
- "pydep.txt"
environment:
LC_ALL: C
- name: Build images
include_role:
name: build-container-image
vars:
container_images: "{{ [base_image] + [requirements_image] + openstack_images }}"
- name: Return images to zuul
include_tasks: _return-image.yml
loop: "{{ openstack_images }}"
loop_control:
loop_var: zj_image