Add opendev-website jobs

Change-Id: I85d59632d5761b2d42d06eaef4b77284c2a956ec
This commit is contained in:
James E. Blair 2018-11-28 08:11:14 -08:00
parent ceff639261
commit 1e4762ad65
2 changed files with 22 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/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
View 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