Merge "Rework base-publish-static jobs using protected"
This commit is contained in:
commit
42148e3112
@ -1,20 +0,0 @@
|
|||||||
- hosts: all
|
|
||||||
roles:
|
|
||||||
- fetch-tox-output
|
|
||||||
- role: fetch-sphinx-output
|
|
||||||
sphinx_output_src: "src/{{ zuul.project.canonical_name }}/doc/build/html/"
|
|
||||||
zuul_executor_dest: "{{ zuul.executor.work_root }}/artifacts"
|
|
||||||
when: zuul_success | bool
|
|
||||||
|
|
||||||
- hosts: localhost
|
|
||||||
roles:
|
|
||||||
- add-fileserver
|
|
||||||
|
|
||||||
- hosts: "{{ fileserver.fqdn }}"
|
|
||||||
gather_facts: False
|
|
||||||
tasks:
|
|
||||||
- name: Upload docs to static site
|
|
||||||
synchronize:
|
|
||||||
src: "{{ zuul.executor.work_root }}/artifacts/"
|
|
||||||
dest: "{{ fileserver.path }}/{{ static_target }}/"
|
|
||||||
when: zuul_success | bool
|
|
@ -16,5 +16,5 @@
|
|||||||
- name: Upload docs to static site
|
- name: Upload docs to static site
|
||||||
synchronize:
|
synchronize:
|
||||||
src: "{{ zuul.executor.work_root }}/artifacts/"
|
src: "{{ zuul.executor.work_root }}/artifacts/"
|
||||||
dest: "{{ fileserver.path }}/{{ zuul.project.short_name }}/"
|
dest: "{{ fileserver.path }}/{{ static_target }}/"
|
||||||
when: zuul_success | bool
|
when: zuul_success | bool
|
||||||
|
@ -559,10 +559,18 @@
|
|||||||
- job:
|
- job:
|
||||||
name: base-publish-static
|
name: base-publish-static
|
||||||
abstract: true
|
abstract: true
|
||||||
|
protected: true
|
||||||
description: |
|
description: |
|
||||||
Base job for jobs that publish content to static.openstack.org.
|
Base job for jobs that publish content to static.openstack.org.
|
||||||
|
|
||||||
|
Jobs need to set the variable ``static_target`` for site to
|
||||||
|
publish to.
|
||||||
pre-run: playbooks/sphinx/pre.yaml
|
pre-run: playbooks/sphinx/pre.yaml
|
||||||
run: playbooks/sphinx/run.yaml
|
run: playbooks/sphinx/run.yaml
|
||||||
|
post-run: playbooks/publish/static.yaml
|
||||||
|
secrets:
|
||||||
|
- name: fileserver
|
||||||
|
secret: static_ssh_key
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: publish-static
|
name: publish-static
|
||||||
@ -571,12 +579,9 @@
|
|||||||
Publish content to static.openstack.org to
|
Publish content to static.openstack.org to
|
||||||
/srv/static/{{ zuul.project.short_name }}
|
/srv/static/{{ zuul.project.short_name }}
|
||||||
final: true
|
final: true
|
||||||
post-run: playbooks/publish/static.yaml
|
|
||||||
vars:
|
vars:
|
||||||
|
static_target: "{{ zuul.project.short_name }}"
|
||||||
sphinx_python: python3
|
sphinx_python: python3
|
||||||
secrets:
|
|
||||||
- name: fileserver
|
|
||||||
secret: static_ssh_key
|
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: publish-governance-sigs
|
name: publish-governance-sigs
|
||||||
@ -584,14 +589,10 @@
|
|||||||
description: |
|
description: |
|
||||||
Publish content to static.openstack.org to /srv/static/sigs
|
Publish content to static.openstack.org to /srv/static/sigs
|
||||||
final: true
|
final: true
|
||||||
post-run: playbooks/publish/static-special.yaml
|
|
||||||
allowed-projects:
|
allowed-projects:
|
||||||
- openstack/governance-sigs
|
- openstack/governance-sigs
|
||||||
vars:
|
vars:
|
||||||
static_target: sigs
|
static_target: sigs
|
||||||
secrets:
|
|
||||||
- name: fileserver
|
|
||||||
secret: static_ssh_key
|
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: publish-governance-tc
|
name: publish-governance-tc
|
||||||
@ -599,15 +600,11 @@
|
|||||||
description: |
|
description: |
|
||||||
Publish content to static.openstack.org to /srv/static/tc
|
Publish content to static.openstack.org to /srv/static/tc
|
||||||
final: true
|
final: true
|
||||||
post-run: playbooks/publish/static-special.yaml
|
|
||||||
allowed-projects:
|
allowed-projects:
|
||||||
- openstack/governance
|
- openstack/governance
|
||||||
vars:
|
vars:
|
||||||
static_target: tc
|
static_target: tc
|
||||||
sphinx_python: python3
|
sphinx_python: python3
|
||||||
secrets:
|
|
||||||
- name: fileserver
|
|
||||||
secret: static_ssh_key
|
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: publish-governance-uc
|
name: publish-governance-uc
|
||||||
@ -615,14 +612,10 @@
|
|||||||
description: |
|
description: |
|
||||||
Publish content to static.openstack.org to /srv/static/uc
|
Publish content to static.openstack.org to /srv/static/uc
|
||||||
final: true
|
final: true
|
||||||
post-run: playbooks/publish/static-special.yaml
|
|
||||||
allowed-projects:
|
allowed-projects:
|
||||||
- openstack/governance-uc
|
- openstack/governance-uc
|
||||||
vars:
|
vars:
|
||||||
static_target: uc
|
static_target: uc
|
||||||
secrets:
|
|
||||||
- name: fileserver
|
|
||||||
secret: static_ssh_key
|
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: publish-governance-website
|
name: publish-governance-website
|
||||||
@ -630,14 +623,10 @@
|
|||||||
description: |
|
description: |
|
||||||
Publish content to static.openstack.org to /srv/static/governance
|
Publish content to static.openstack.org to /srv/static/governance
|
||||||
final: true
|
final: true
|
||||||
post-run: playbooks/publish/static-special.yaml
|
|
||||||
allowed-projects:
|
allowed-projects:
|
||||||
- openstack/governance-website
|
- openstack/governance-website
|
||||||
vars:
|
vars:
|
||||||
static_target: governance
|
static_target: governance
|
||||||
secrets:
|
|
||||||
- name: fileserver
|
|
||||||
secret: static_ssh_key
|
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: publish-security
|
name: publish-security
|
||||||
@ -645,14 +634,10 @@
|
|||||||
description: |
|
description: |
|
||||||
Publish content to static.openstack.org to /srv/static/security
|
Publish content to static.openstack.org to /srv/static/security
|
||||||
final: true
|
final: true
|
||||||
post-run: playbooks/publish/static-special.yaml
|
|
||||||
allowed-projects:
|
allowed-projects:
|
||||||
- openstack/ossa
|
- openstack/ossa
|
||||||
vars:
|
vars:
|
||||||
static_target: security
|
static_target: security
|
||||||
secrets:
|
|
||||||
- name: fileserver
|
|
||||||
secret: static_ssh_key
|
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: publish-openstack-manuals-base
|
name: publish-openstack-manuals-base
|
||||||
|
Loading…
Reference in New Issue
Block a user