From b4c57620b0187af7191edb6e5fc22caf05415d89 Mon Sep 17 00:00:00 2001 From: Mike Perez Date: Tue, 17 Oct 2017 14:17:46 -0700 Subject: [PATCH] Create a playbook for publishing contributor-guide The Documentation team has previously used /contributor-guide for their own on-boarding documentation. This publishes the general contributor guide to /contributors. Change-Id: I223610d480b7754176dd00366ae093676cf612c9 --- playbooks/publish/contributor-guide-afs.yaml | 15 +++++++++++++++ zuul.d/jobs.yaml | 17 +++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 playbooks/publish/contributor-guide-afs.yaml diff --git a/playbooks/publish/contributor-guide-afs.yaml b/playbooks/publish/contributor-guide-afs.yaml new file mode 100644 index 0000000000..8360308baf --- /dev/null +++ b/playbooks/publish/contributor-guide-afs.yaml @@ -0,0 +1,15 @@ +- hosts: all + roles: + - fetch-tox-output + - role: write-root-marker + root_marker_dir: "src/{{ zuul.project.canonical_name }}/doc/build/html" + - role: fetch-sphinx-output + sphinx_output_src: "{{ zuul.project.src_dir }}/doc/build/html" + zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts" + +- hosts: localhost + roles: + - create-afs-token + - role: upload-afs + afs_target: "{{ afs.path }}/contributors" + - destroy-afs-token diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index 384bad7318..b2b7302619 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -155,6 +155,23 @@ - secret: afsdocs_secret name: afs +- job: + name: publish-openstack-contributor-guide + description: | + Publish contributor-guide documents to + https://docs.openstack.org/contributors + final: True + pre-run: playbooks/python-docs/pre + run: playbooks/project-config/run-tox + post-run: playbooks/publish/openstack-contributor-guide-afs + roles: + - zuul: openstack-infra/zuul-jobs + - zuul: openstack-infra/openstack-zuul-jobs + branches: master + secrets: + - secret: afsdocs_secret + name: afs + - job: name: publish-openstack-releasenotes description: |