Merge "Set up stx-docs and stx-specs publish jobs"

This commit is contained in:
Zuul 2018-10-02 13:41:28 +00:00 committed by Gerrit Code Review
commit 7ca28fdfcf
2 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,9 @@
- hosts: localhost
roles:
- role: create-afs-token
when: zuul_success | bool
- role: upload-afs
afs_target: "/afs/.openstack.org/project/starlingx.io/www{{ afs_subpath | default('') }}"
when: zuul_success | bool
- role: destroy-afs-token
when: zuul_success | bool

View File

@ -0,0 +1,52 @@
- job:
name: publish-stx-docs
description: |
Publish the results of a sphinx build to
/afs/.openstack.org/project/starlingx.io/www
Builds the docs using ``tox -e docs``.
allowed-projects:
- openstack/stx-docs
# Set final to avoid override of afs_subpath variable.
final: true
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/starlingx-afs.yaml
roles:
- zuul: openstack-infra/zuul-jobs
- zuul: openstack-infra/openstack-zuul-jobs
secrets:
- secret: afsdocs_secret
name: afs
vars:
tox_envlist: docs
- job:
name: publish-stx-specs
description: |
Publish the results of a sphinx build to
/afs/.openstack.org/project/starlingx.io/www/specs
Builds the docs using ``tox -e docs``.
allowed-projects:
- openstack/stx-specs
# Set final to avoid override of afs_subpath variable.
final: true
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/starlingx-afs.yaml
roles:
- zuul: openstack-infra/zuul-jobs
- zuul: openstack-infra/openstack-zuul-jobs
secrets:
- secret: afsdocs_secret
name: afs
vars:
afs_subpath: "/specs"
tox_envlist: docs