Create a parent job to publish to the zuul website
This is in project-config so that it can run on the executor and use the local AFS installation. Change-Id: I2a29ea4639c830f03f1f7776c6b194b57c28e937
This commit is contained in:
parent
1145ab1293
commit
191b7082a8
9
playbooks/publish/zuul-afs.yaml
Normal file
9
playbooks/publish/zuul-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/zuul-ci.org/www"
|
||||
when: zuul_success | bool
|
||||
- role: destroy-afs-token
|
||||
when: zuul_success | bool
|
13
zuul.d/zuul-jobs.yaml
Normal file
13
zuul.d/zuul-jobs.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
- job:
|
||||
name: publish-zuul-website
|
||||
description: |
|
||||
Publishes content in artifacts/ to the Zuul website.
|
||||
allowed-projects:
|
||||
- openstack-infra/zuul-website
|
||||
post-run:
|
||||
- playbooks/publish/zuul-afs.yaml
|
||||
roles:
|
||||
- zuul: openstack-infra/zuul-jobs
|
||||
secrets:
|
||||
- secret: afsdocs_secret
|
||||
name: afs
|
Loading…
Reference in New Issue
Block a user