Set up stx-docs and stx-specs publish jobs

These will publish to docs.starlingx.io

Change-Id: Ie2324fd2ee190fdaf3cc11cb2d1e14c5186a471a
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
This commit is contained in:
Dean Troyer 2018-08-31 13:52:45 -05:00
parent 22c5545a14
commit 9cd59fa3ad
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