Add AFS publish job for releases repo
Add new job publish-tox-docs-releases for publishing of releases repo to new AFS location to obsolete static.o.o publishing. Task: #37724 Story: #2006598 Needed-By: https://review.opendev.org/708918 Change-Id: I804f6ddb0b10b4aa3fac6a3cf11a2d23b8b4e730
This commit is contained in:
parent
3e0549776b
commit
2e6eaa678f
9
playbooks/publish/releases-afs.yaml
Normal file
9
playbooks/publish/releases-afs.yaml
Normal file
@ -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
|
@ -511,6 +511,31 @@
|
|||||||
vars:
|
vars:
|
||||||
static_target: "{{ zuul.project.short_name }}"
|
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:
|
- job:
|
||||||
name: promote-tox-docs-site-base
|
name: promote-tox-docs-site-base
|
||||||
parent: opendev-promote-docs-base
|
parent: opendev-promote-docs-base
|
||||||
|
Loading…
Reference in New Issue
Block a user