diff --git a/playbooks/publish/releases-afs.yaml b/playbooks/publish/releases-afs.yaml new file mode 100644 index 0000000000..b2146fc6c0 --- /dev/null +++ b/playbooks/publish/releases-afs.yaml @@ -0,0 +1,9 @@ +- hosts: localhost + roles: + - role: create-afs-token + when: zuul_success | bool + - role: upload-afs-roots + afs_target: "/afs/.openstack.org/project/releases.openstack.org" + when: zuul_success | bool + - role: destroy-afs-token + when: zuul_success | bool diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index 119326aec9..b1c06cce41 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -511,6 +511,31 @@ vars: static_target: "{{ zuul.project.short_name }}" +- job: + name: publish-tox-docs-releases + description: | + Publish content of openstack/releases to + /afs/.openstack.org/project/releases.openstack.org/. + + Builds the docs using ``tox -e docs``. + final: true + roles: + - zuul: openstack/openstack-zuul-jobs + pre-run: playbooks/project-config/pre-tox.yaml + run: playbooks/project-config/run-tox.yaml + post-run: + - playbooks/project-config/post-tox.yaml + - playbooks/sphinx/post-infra.yaml + - playbooks/publish/releases-afs.yaml + allowed-projects: + - openstack/releases + secrets: + - secret: afsdocs_secret + name: afs + vars: + tox_envlist: docs + afs_subpath: "/{{ zuul.project.short_name }}" + - job: name: promote-tox-docs-site-base parent: opendev-promote-docs-base