Merge "Enable promote to unarchive gz archives in addition to bz2"

This commit is contained in:
Zuul
2020-04-22 16:48:11 +00:00
committed by Gerrit Code Review
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'"