Merge "Make publish jobs more generic"

This commit is contained in:
Zuul 2020-12-02 19:51:46 +00:00 committed by Gerrit Code Review
commit 970ec5128a

View File

@ -19,16 +19,16 @@
register: _get_url
failed_when: _get_url.status_code not in (200, 404)
get_url:
url: https://tarballs.opendev.org/openstack/openstack-helm-infra/index.yaml
url: "https://tarballs.opendev.org/{{ zuul.project.name }}/index.yaml"
dest: "{{ zuul.project.src_dir }}/index.yaml"
- name: Create a new index
when: _get_url.status_code == 404
shell: helm repo index {{ zuul.project.src_dir }} --url https://tarballs.opendev.org/openstack/openstack-helm-infra
shell: helm repo index {{ zuul.project.src_dir }} --url https://tarballs.opendev.org/{{ zuul.project.name }}
- name: Merge into existing index
when: _get_url.status_code == 200
shell: helm repo index {{ zuul.project.src_dir }} --merge {{ zuul.project.src_dir }}/index.yaml --url https://tarballs.opendev.org/openstack/openstack-helm-infra
shell: helm repo index {{ zuul.project.src_dir }} --merge {{ zuul.project.src_dir }}/index.yaml --url https://tarballs.opendev.org/{{ zuul.project.name }}
- name: Ensure artifact directory exists
file: