diff --git a/playbooks/gating.dev/publish.yaml b/playbooks/gating.dev/publish.yaml new file mode 100644 index 0000000..c1a7694 --- /dev/null +++ b/playbooks/gating.dev/publish.yaml @@ -0,0 +1,9 @@ +- hosts: localhost + roles: + - role: create-afs-token + when: zuul_success | bool + - role: upload-afs-roots + afs_target: "/afs/.openstack.org/project/zuul-ci.org/gating.dev/www" + when: zuul_success | bool + - role: destroy-afs-token + when: zuul_success | bool diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index f3a23d4..fb5eda2 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -33,6 +33,18 @@ - secret: zuul-afs name: afs +- job: + name: publish-gating.dev-website + description: | + Publishes content in artifacts/ to the gating.dev website. + allowed-projects: + - zuul/gating.dev + post-run: + - playbooks/gating.dev/publish.yaml + secrets: + - secret: zuul-afs + name: afs + - job: name: build-gerrit-image parent: system-config-build-image-gerrit-master-base