Browse Source

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/
changes/52/721652/2
Sorin Sbarnea 1 year ago
parent
commit
5ea7f35c0a
  1. 6
      playbooks/api-jobs/promote.yaml
  2. 6
      playbooks/service-types/promote.yaml

6
playbooks/api-jobs/promote.yaml

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

6
playbooks/service-types/promote.yaml

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

Loading…
Cancel
Save