fix(job): fixes the post job
This corrects the ability to sync artifacts to tarballs.o.o. Change-Id: Icb2b6653f263aaab173d1479d05c0209e7390c50 Signed-off-by: Tin Lam <tin@irrational.io>
This commit is contained in:
parent
da81705a47
commit
738c89b342
@ -38,14 +38,26 @@
|
|||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
chdir: "{{ zuul.project.src_dir }}"
|
chdir: "{{ zuul.project.src_dir }}"
|
||||||
|
|
||||||
|
- name: Ensure artifact directory exists
|
||||||
|
file:
|
||||||
|
path: "{{ zuul.executor.work_root }}/artifacts/"
|
||||||
|
state: directory
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
|
- name: Gather the artifacts
|
||||||
|
find:
|
||||||
|
file_type: file
|
||||||
|
paths: "{{ zuul.project.src_dir }}"
|
||||||
|
patterns: "*.tar.gz,*.tgz,index.yaml"
|
||||||
|
register: result
|
||||||
|
|
||||||
- name: Update Helm repository
|
- name: Update Helm repository
|
||||||
synchronize:
|
synchronize:
|
||||||
mode: pull
|
mode: pull
|
||||||
src: "{{ zuul.project.src_dir }}"
|
src: "{{ item.path }}"
|
||||||
dest: "{{ zuul.executor.work_root }}/artifacts/"
|
dest: "{{ zuul.executor.work_root }}/artifacts/"
|
||||||
verify_host: true
|
verify_host: true
|
||||||
rsync_opts:
|
owner: no
|
||||||
- "--include=index.yaml"
|
group: no
|
||||||
- "--include=*.tgz"
|
with_items: "{{ result.files }}"
|
||||||
- "--exclude=*"
|
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user