Make publish jobs more generic
This will help in allowing the openstack-helm repo cleanly publish to the seperate folder. Change-Id: I2651c2f81191802a8f30314c4eebffdf0c2a53af
This commit is contained in:
parent
ca372bfea6
commit
ca60e1d875
@ -19,16 +19,16 @@
|
|||||||
register: _get_url
|
register: _get_url
|
||||||
failed_when: _get_url.status_code not in (200, 404)
|
failed_when: _get_url.status_code not in (200, 404)
|
||||||
get_url:
|
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"
|
dest: "{{ zuul.project.src_dir }}/index.yaml"
|
||||||
|
|
||||||
- name: Create a new index
|
- name: Create a new index
|
||||||
when: _get_url.status_code == 404
|
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
|
- name: Merge into existing index
|
||||||
when: _get_url.status_code == 200
|
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
|
- name: Ensure artifact directory exists
|
||||||
file:
|
file:
|
||||||
|
Loading…
Reference in New Issue
Block a user