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:
parent
22c5545a14
commit
9cd59fa3ad
9
playbooks/publish/starlingx-afs.yaml
Normal file
9
playbooks/publish/starlingx-afs.yaml
Normal 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
|
52
zuul.d/starlingx-jobs.yaml
Normal file
52
zuul.d/starlingx-jobs.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user