Re: CI/CD for web publishing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 19, 2016 at 08:29:40PM +0100, Brian Exelbierd wrote:
> Hey,
> 
> I am working on a project to publish some data regularly from the budget
> repo in Pagure.  Do we have an existing example I can use as a template
> for re-publishing a site by running a publishing tool and then
> depositing html somewhere everytime there is a commit?

I use the following shell script when I want to update the doc repo of a pagure
project:

$ cat bin/update_doc.sh
#!/bin/bash

make html

git clone "ssh://git@xxxxxxxxx/docs/$1.git"
cp -r _build/html/* $1/

(
  cd $1
  git add .
  git commit -av
  git push
)

rm -rfI _build
rm -rfI $1


$ update_doc.sh pagure
...


That is if you're interested in using the doc repo of the pagure project:
https://docs.pagure.org/pagure/usage/using_doc.html

Otherwise, we have a hook for ReadTheDoc.

If none of these please you, you could build something custom using fedmsg or
the webhook mechanism.

> Also, do we have infrastructure for testing PRs that I can hook into?

There is stg.pagure.io which you can use to test everything you like :)


Hope this helps,

Pierre
_______________________________________________
infrastructure mailing list -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux