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:
parent
29551dc2ef
commit
4b4fecb659
13
.zuul.yaml
13
.zuul.yaml
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 }}"
|
Loading…
Reference in New Issue