From ca60e1d875d7c3554629dad49a7373c5074374cd Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Wed, 11 Nov 2020 19:22:55 -0500 Subject: [PATCH] Make publish jobs more generic This will help in allowing the openstack-helm repo cleanly publish to the seperate folder. Change-Id: I2651c2f81191802a8f30314c4eebffdf0c2a53af --- playbooks/publish/post.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playbooks/publish/post.yaml b/playbooks/publish/post.yaml index 52f9f6488..61f3a4506 100644 --- a/playbooks/publish/post.yaml +++ b/playbooks/publish/post.yaml @@ -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: