Publish opendev website to afs on merge.

Change-Id: Iec6a00246660108bb1ab5b5ee2d09af1f8b2c4e5
This commit is contained in:
Clark Boylan 2018-12-17 09:21:26 -08:00
parent 4b4fecb659
commit f24073cf1e
2 changed files with 23 additions and 0 deletions

View File

@ -7,6 +7,15 @@
nodeset:
nodes: []
- job:
name: opendev-website-publish
parent: publish-opendev-website
description: |
Publishes the OpenDev website.
run: playbooks/copy-to-artifacts.yaml
nodeset:
nodes: []
- project:
check:
jobs:
@ -14,3 +23,6 @@
gate:
jobs:
- opendev-website-build
post:
jobs:
- opendev-website-publish

View File

@ -0,0 +1,11 @@
- hosts: localhost
tasks:
- name: Copy content to artifacts dir
copy:
src: "{{ zuul.executor.work_root }}/{{ zuul.projects['git.openstack.org/openstack-infra/opendev-website'].src_dir }}/www/"
dest: "{{ zuul.executor.work_root }}/artifacts/"
- name: Write marker text
copy:
dest: "{{ zuul.executor.work_root }}/artifacts/.root-marker"
content: "Project: {{ zuul.project.name }} Branch: {{ zuul.branch }} Build: {{ zuul.build }} Revision: {{ zuul.ref }}"