project-config/playbooks/publish/static-special.yaml
James E. Blair 41692f866e Fix missing "role:" mapping keys
Change-Id: I1c0c6a8244f019d70e4ec1e1fc56f5641f6edeaf
2017-10-26 14:46:04 -07:00

21 lines
571 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
copy:
src: "{{ zuul.executor.work_root }}/artifacts/"
dest: "{{ fileserver.path }}/{{ static_target }}/"
when: zuul_success | bool