diff --git a/playbooks/publish/opendev-afs.yaml b/playbooks/publish/opendev-afs.yaml new file mode 100644 index 0000000000..cbcca3cd93 --- /dev/null +++ b/playbooks/publish/opendev-afs.yaml @@ -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 diff --git a/zuul.d/opendev-jobs.yaml b/zuul.d/opendev-jobs.yaml new file mode 100644 index 0000000000..eb471f25e6 --- /dev/null +++ b/zuul.d/opendev-jobs.yaml @@ -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