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:
Sorin Sbarnea 2020-04-21 16:10:06 +01:00
parent 67b12b9f0d
commit 5ea7f35c0a
2 changed files with 10 additions and 2 deletions

View File

@ -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:

View File

@ -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'"