Add publishing of content to opendev-website

This organizes content a bit more so that it can be published. We start
with a simple job to publish to the logs server on check and gate jobs.

Change-Id: I6a11e3526a36f793c7f6f6930ab681702ebe4bbc
This commit is contained in:
Clark Boylan 2018-12-17 09:00:18 -08:00
parent 29551dc2ef
commit 4b4fecb659
5 changed files with 18 additions and 3 deletions

View File

@ -1,7 +1,16 @@
- job:
name: opendev-website-build
description: |
Publishes a draft version of the OpenDev website.
success-url: www/
run: playbooks/copy-to-logs.yaml
nodeset:
nodes: []
- project:
check:
jobs:
- noop
- opendev-website-build
gate:
jobs:
- noop
- opendev-website-build

View File

@ -1,3 +1,3 @@
Html is rendered from Markdown using pandoc:
pandoc -s index.md -o index.html -c index.css --metadata pagetitle="OpenDev"
pandoc -s index.md -o www/index.html -c www/index.css --metadata pagetitle="OpenDev"

View File

@ -0,0 +1,6 @@
- hosts: localhost
tasks:
- name: Copy content to logs dir
copy:
src: "{{ zuul.executor.work_root }}/{{ zuul.projects['git.openstack.org/openstack-infra/opendev-website'].src_dir }}/www"
dest: "{{ zuul.executor.log_root }}"