From 5a18b83d97e2d663f1144a625c1dca4a9debebe1 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Fri, 15 Sep 2017 18:13:54 -0600 Subject: [PATCH] Add publish-service-types-authority job and mapping Change-Id: I2e16daa3826de2c8e7f990256eb0ec95e875e96c --- playbooks/publish/service-types.yaml | 21 +++++++++++++++++++++ playbooks/service-types/run.yaml | 4 ++++ zuul.yaml | 15 +++++++++++++++ zuul/mapping.yaml | 3 +++ 4 files changed, 43 insertions(+) create mode 100644 playbooks/publish/service-types.yaml create mode 100644 playbooks/service-types/run.yaml diff --git a/playbooks/publish/service-types.yaml b/playbooks/publish/service-types.yaml new file mode 100644 index 0000000000..d55801481b --- /dev/null +++ b/playbooks/publish/service-types.yaml @@ -0,0 +1,21 @@ +- 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" + +- hosts: localhost + roles: + - role: add-fileserver + fileserver: "{{ site_logs }}" + +- hosts: "{{ site_logs.fqdn }}" + gather_facts: False + tasks: + + - name: Upload specs to fileserver + synchronize: + src: "{{ zuul.executor.work_root }}/artifacts/" + dest: "/srv/static/service-types/" + no_log: true diff --git a/playbooks/service-types/run.yaml b/playbooks/service-types/run.yaml new file mode 100644 index 0000000000..d59bab5f14 --- /dev/null +++ b/playbooks/service-types/run.yaml @@ -0,0 +1,4 @@ +- hosts: all + roles: + - role: tox + tox_envlist: publish diff --git a/zuul.yaml b/zuul.yaml index 8d4a3bbf2f..f4c7c36d92 100644 --- a/zuul.yaml +++ b/zuul.yaml @@ -474,6 +474,21 @@ - secret: afsdocs_secret name: afs +- job: + name: publish-service-types-authority + description: | + Publish OpenStack Service Types Authority to + https://service-types.openstack.org + final: True + pre-run: playbooks/python-docs/pre + run: playbooks/service-types/run + post-run: playbooks/publish/service-types + roles: + - zuul: openstack-infra/zuul-jobs + - zuul: openstack-infra/openstack-zuul-jobs + secrets: + - site_logs + - job: name: publish-openstack-python-docs-infra-index description: | diff --git a/zuul/mapping.yaml b/zuul/mapping.yaml index c5a1bea148..6435c79541 100644 --- a/zuul/mapping.yaml +++ b/zuul/mapping.yaml @@ -113,6 +113,9 @@ job-mapping: vars: update_target: os-service-types + - old: publish-service-types-authority + new: publish-service-types-authority + # List of project-template mapping data. In each entry: # old # v2 project-template name. If a template is listed here, the old template