vino/roles/vino-build-images/tasks/main.yaml
Alexander Hughes 00125cbdef Add image build jobs
The images built from ViNO code are not currently stored in a public
registry, this change adds Zuul jobs to push the controller and
nodelabeler images to Quay.io where they can be consumed by the
community.

Signed-off-by: Alexander Hughes <Alexander.Hughes@pm.me>
Change-Id: I19d7b9954a20af07cb6ffd1f1e8f17f3ed6e754c
2021-01-15 15:08:09 +00:00

43 lines
1.4 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.
- name: Run ensure-docker
include_role:
name: ensure-docker
- name: Buid vino controller image
make:
chdir: "{{ zuul.project.src_dir }}"
target: docker-build-controller
params:
PROXY: "{{ proxy.http }}"
NO_PROXY: "{{ proxy.noproxy }}"
USE_PROXY: "{{ proxy.enabled | lower }}"
- name: Verify controller image exists
shell: docker image inspect quay.io/airshipit/vino
args:
chdir: "{{ zuul.project.src_dir }}"
- name: Buid vino nodelabeler image
make:
chdir: "{{ zuul.project.src_dir }}"
target: docker-build-nodelabeler
params:
PROXY: "{{ proxy.http }}"
NO_PROXY: "{{ proxy.noproxy }}"
USE_PROXY: "{{ proxy.enabled | lower }}"
- name: Verify nodelabeler image exists
shell: docker image inspect quay.io/airshipit/nodelabeler
args:
chdir: "{{ zuul.project.src_dir }}"