openstack-helm-images/zuul.d/openstack-base.yaml
Vladimir Kozhukalov 3e9731c04b Fix image promote job definition
If secrets are defined in a job they
are only available to the playbooks
defined in the same job. They are not available
to any child jobs and they only available to
the parent jobs if pass-to-parent is true.

In our case we use custom promote playbook thus
we have to define secrets in the same job.

Change-Id: I5c60a1d109ad8cb55f3d7f61c74653d4590e3942
2023-10-05 09:59:43 -05:00

96 lines
2.6 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.
- job:
name: openstack-helm-images-build-openstack
parent: openstack-helm-images-build
abstract: true
timeout: 5400
required-projects:
- openstack/loci
run:
- zuul.d/playbooks/build-openstack.yml
vars: &base_vars
branchname: "master"
shortbranchname: "master"
distroname: ""
from: ""
ceph_repo: ""
ceph_key: ""
openstack_docker_images:
- requirements
- keystone
- glance
- cinder
- nova
- ironic
- neutron
- horizon
- heat
- barbican
- placement
- monasca_api
- cyborg
- masakari
- masakari_monitors
- manila
- tacker
- job:
name: openstack-helm-images-upload-openstack
parent: openstack-helm-images-upload
abstract: true
timeout: 5400
required-projects:
- openstack/loci
run:
- zuul.d/playbooks/build-openstack.yml
- zuul.d/playbooks/upload-openstack.yml
secrets:
name: docker_credentials
secret: openstack-helm-dockerhub
vars: *base_vars
- job:
name: openstack-helm-images-promote-openstack
parent: openstack-helm-images-promote
abstract: true
run:
- zuul.d/playbooks/promote-openstack.yml
secrets:
name: docker_credentials
secret: openstack-helm-dockerhub
vars: *base_vars
- job:
name: openstack-helm-images-build-openstack-ubuntu_jammy
parent: openstack-helm-images-build-openstack
abstract: true
vars: &jammy_vars
distroname: "ubuntu_jammy"
from: "docker.io/ubuntu:22.04"
ceph_repo: "deb https://download.ceph.com/debian-reef/ jammy main"
ceph_key: "http://download.ceph.com/keys/release.asc"
- job:
name: openstack-helm-images-upload-openstack-ubuntu_jammy
parent: openstack-helm-images-upload-openstack
abstract: true
vars: *jammy_vars
- job:
name: openstack-helm-images-promote-openstack-ubuntu_jammy
parent: openstack-helm-images-promote-openstack
abstract: true
vars: *jammy_vars