Use release-ansible-collections from project-config

Since secrets are unique per project, it's not possible jsut to re-use
job from ansible-collections-openstack. So we define individual api key
per repo and parenting same job that is stored in project-config.

Depends-On: https://review.opendev.org/c/openstack/project-config/+/850664
Change-Id: If50daae8d46dffb5e7e7742feaa88eb0be7aa699
This commit is contained in:
Dmitriy Rabotyagov 2022-07-21 17:03:17 +02:00
parent dae35c0bc3
commit 09b2be7625
4 changed files with 43 additions and 2 deletions

View File

@ -4,7 +4,7 @@ description: |-
Template includes config_template module, that leverages template module and
adds override functionality to different types of config files.
name: "config_template"
version: "1.3.0"
version: "2.0.1"
readme: "README.rst"
authors:
- Kevin Carter <kevin.carter@rackspace.com>

21
zuul.d/jobs.yaml Normal file
View File

@ -0,0 +1,21 @@
---
# Copyright 2022, City Network International AB.
#
# 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: release-ansible-collection-config_template
parent: release-ansible-collections
secrets:
- secret: ansible_galaxy_info
pass-to-parent: true

View File

@ -32,4 +32,4 @@
tag:
jobs:
- ansible-collections-openstack-release
- release-ansible-collection-config_template

20
zuul.d/secrets.yaml Normal file
View File

@ -0,0 +1,20 @@
---
# Copyright 2022, City Network International AB.
#
# 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.
- secret:
name: ansible_galaxy_info
data:
token: !encrypted/pkcs1-oaep
-