From 1e4762ad65b3f61fe3bd21076b7df259689d2115 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Wed, 28 Nov 2018 08:11:14 -0800 Subject: [PATCH] Add opendev-website jobs Change-Id: I85d59632d5761b2d42d06eaef4b77284c2a956ec --- playbooks/publish/opendev-afs.yaml | 9 +++++++++ zuul.d/opendev-jobs.yaml | 13 +++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 playbooks/publish/opendev-afs.yaml create mode 100644 zuul.d/opendev-jobs.yaml 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