Merge "Add opendev-website jobs"

This commit is contained in:
Zuul 2018-11-29 05:00:58 +00:00 committed by Gerrit Code Review
commit a0f5065dc7
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