Add publish-zuul-website job

Change-Id: I07cb59861b38df6c87daf586d697daab5c80e979
This commit is contained in:
James E. Blair 2019-07-11 13:34:35 -07:00
parent ad07dc7577
commit 40847572ff
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/zuul-ci.org/www"
when: zuul_success | bool
- role: destroy-afs-token
when: zuul_success | bool

View File

@ -19,3 +19,16 @@
- secret: zuul-afs
name: afs
pass-to-parent: true
- job:
name: publish-zuul-website
description: |
Publishes content in artifacts/ to the Zuul website.
allowed-projects:
- zuul/zuul-website
- zuul/zuul-website-media
post-run:
- playbooks/website/publish.yaml
secrets:
- secret: zuul-afs
name: afs