f66101a4bf
Add native zuul v3 job to publish index file of openstack-infra/publications. Run the post job on all branches, so that a change to the master branch regenerates the index file. Add native zuul v3 job to publish a specific publication from openstack-infra/publications. Use the job for the project. Needed-By: I190b34217c87d45e13bca18c7e121189323b698f Change-Id: I6da66649726a1a96d06d7ca643adeec8ea8649eb
23 lines
684 B
YAML
23 lines
684 B
YAML
- hosts: all
|
|
roles:
|
|
- role: write-root-marker
|
|
root_marker_dir: "{{ zuul.project.src_dir }}/"
|
|
|
|
post_tasks:
|
|
- name: Copy content directly to proper place for publishing
|
|
shell:
|
|
cmd: |
|
|
set -x
|
|
# NAME will either be the branch name or the tag name
|
|
NAME=`echo $ZUUL_REFNAME | sed 's/refs.tags.//'`
|
|
mkdir -p _out/$NAME
|
|
for FN in * ; do
|
|
if [ "_out" != "$FN" ] ; then
|
|
mv $FN _out/$NAME/
|
|
fi
|
|
done
|
|
# Explicitly copy the root marker file
|
|
mv .root-marker _out/$NAME/
|
|
executable: /bin/bash
|
|
chdir: '{{ zuul.project.src_dir }}'
|