Enable promote to unarchive gz archives in addition to bz2
This should enable us to change archive types. Change-Id: Id79a4ece4eb9e658afc75cb653bd5e02c3f47d0d Needed-By: https://review.opendev.org/#/c/715028/
This commit is contained in:
parent
67b12b9f0d
commit
5ea7f35c0a
|
@ -21,8 +21,12 @@
|
||||||
path: "{{ zuul.executor.work_root }}/docs"
|
path: "{{ zuul.executor.work_root }}/docs"
|
||||||
state: directory
|
state: directory
|
||||||
- name: Extract docs archive
|
- name: Extract docs archive
|
||||||
|
vars:
|
||||||
|
findme:
|
||||||
|
- "{{ zuul.executor.work_root }}/docs-html.tar.bz2"
|
||||||
|
- "{{ zuul.executor.work_root }}/docs-html.tar.gz"
|
||||||
unarchive:
|
unarchive:
|
||||||
src: "{{ zuul.executor.work_root }}/docs-html.tar.bz2"
|
src: "{{ lookup('first_found', findme) }}"
|
||||||
dest: "{{ zuul.executor.work_root }}/docs"
|
dest: "{{ zuul.executor.work_root }}/docs"
|
||||||
- name: Write root_marker file
|
- name: Write root_marker file
|
||||||
include_role:
|
include_role:
|
||||||
|
|
|
@ -23,8 +23,12 @@
|
||||||
path: "{{ zuul.executor.work_root }}/docs"
|
path: "{{ zuul.executor.work_root }}/docs"
|
||||||
state: directory
|
state: directory
|
||||||
- name: Extract docs archive
|
- name: Extract docs archive
|
||||||
|
vars:
|
||||||
|
findme:
|
||||||
|
- "{{ zuul.executor.work_root }}/docs-html.tar.bz2"
|
||||||
|
- "{{ zuul.executor.work_root }}/docs-html.tar.gz"
|
||||||
unarchive:
|
unarchive:
|
||||||
src: "{{ zuul.executor.work_root }}/docs-html.tar.bz2"
|
src: "{{ lookup('first_found', findme) }}"
|
||||||
dest: "{{ zuul.executor.work_root }}/docs"
|
dest: "{{ zuul.executor.work_root }}/docs"
|
||||||
- name: Set target directory if master
|
- name: Set target directory if master
|
||||||
when: "zuul.branch == 'master'"
|
when: "zuul.branch == 'master'"
|
||||||
|
|
Loading…
Reference in New Issue