Add opendev-website jobs
Change-Id: I85d59632d5761b2d42d06eaef4b77284c2a956ec
This commit is contained in:
parent
ceff639261
commit
1e4762ad65
9
playbooks/publish/opendev-afs.yaml
Normal file
9
playbooks/publish/opendev-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/opendev.org/www{{ afs_subpath | default('') }}"
|
||||
when: zuul_success | bool
|
||||
- role: destroy-afs-token
|
||||
when: zuul_success | bool
|
13
zuul.d/opendev-jobs.yaml
Normal file
13
zuul.d/opendev-jobs.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
- job:
|
||||
name: publish-opendev-website
|
||||
description: |
|
||||
Publishes content in artifacts/ to the OpenDev website.
|
||||
allowed-projects:
|
||||
- openstack-infra/opendev-website
|
||||
post-run:
|
||||
- playbooks/publish/opendev-afs.yaml
|
||||
roles:
|
||||
- zuul: openstack-infra/zuul-jobs
|
||||
secrets:
|
||||
- secret: afsdocs_secret
|
||||
name: afs
|
Loading…
Reference in New Issue
Block a user