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
This commit is contained in:
Vladimir Kozhukalov 2023-10-05 09:59:43 -05:00
parent b5fc624765
commit 3e9731c04b
2 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,6 @@
vars: *build_vars
files: *openstack_files
# - job:
# name: openstack-helm-images-compute-kit-2023-2-ubuntu_jammy
# parent: openstack-helm-compute-kit-2023-2-ubuntu_jammy

View File

@ -67,6 +67,9 @@
abstract: true
run:
- zuul.d/playbooks/promote-openstack.yml
secrets:
name: docker_credentials
secret: openstack-helm-dockerhub
vars: *base_vars
- job: