Merge "Enable promote to unarchive gz archives in addition to bz2"
This commit is contained in:
@@ -21,8 +21,12 @@
|
||||
path: "{{ zuul.executor.work_root }}/docs"
|
||||
state: directory
|
||||
- name: Extract docs archive
|
||||
vars:
|
||||
findme:
|
||||
- "{{ zuul.executor.work_root }}/docs-html.tar.bz2"
|
||||
- "{{ zuul.executor.work_root }}/docs-html.tar.gz"
|
||||
unarchive:
|
||||
src: "{{ zuul.executor.work_root }}/docs-html.tar.bz2"
|
||||
src: "{{ lookup('first_found', findme) }}"
|
||||
dest: "{{ zuul.executor.work_root }}/docs"
|
||||
- name: Write root_marker file
|
||||
include_role:
|
||||
|
@@ -23,8 +23,12 @@
|
||||
path: "{{ zuul.executor.work_root }}/docs"
|
||||
state: directory
|
||||
- name: Extract docs archive
|
||||
vars:
|
||||
findme:
|
||||
- "{{ zuul.executor.work_root }}/docs-html.tar.bz2"
|
||||
- "{{ zuul.executor.work_root }}/docs-html.tar.gz"
|
||||
unarchive:
|
||||
src: "{{ zuul.executor.work_root }}/docs-html.tar.bz2"
|
||||
src: "{{ lookup('first_found', findme) }}"
|
||||
dest: "{{ zuul.executor.work_root }}/docs"
|
||||
- name: Set target directory if master
|
||||
when: "zuul.branch == 'master'"
|
||||
|
Reference in New Issue
Block a user