30da877039
We just lost the docs.o.o index page: The tox run failed and only a few files were ready. Since we delete existing content when pushing new, this removed all our static pages. Add a safe guard for all doc building: Only collect and publish documents when we have build them with success. Add this to related roles like creating/destroying afs as well. Change-Id: Ife2496fe920bd40d52803705b409e6e621532254
21 lines
588 B
YAML
21 lines
588 B
YAML
- hosts: all
|
|
roles:
|
|
- fetch-tox-output
|
|
- role: fetch-sphinx-output
|
|
sphinx_output_src: "src/{{ zuul.project.canonical_name }}/doc/build/html/"
|
|
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
|
|
when: zuul_success | bool
|
|
|
|
- hosts: localhost
|
|
roles:
|
|
- add-fileserver
|
|
|
|
- hosts: "{{ fileserver.fqdn }}"
|
|
gather_facts: False
|
|
tasks:
|
|
- name: Upload docs to static site
|
|
synchronize:
|
|
src: "{{ zuul.executor.work_root }}/artifacts/"
|
|
dest: "{{ fileserver.path }}/{{ zuul.project.short_name }}/"
|
|
when: zuul_success | bool
|