riboseinc / jekyll-theme-open-project

Jekyll theme for site suite presenting your open software and specifications.
MIT License
30 stars 3 forks source link

Trigger Open Project site CI deployments automatically on each software/spec repo update #40

Open strogonoff opened 5 years ago

strogonoff commented 5 years ago

Currently in OP framework, each project site during its build pulls the information about each descendant software package from that package’s GitHub repo (things like last commit timestamp, documentation, soon probably latest release & other things).

This keeps things more or less DRY, and maintainers don’t need to make commits to project sites each time any of its descendant software packages gets updated.

However, it is still preferable to build project sites when software gets updated so that sites show up-to-date commit timestamps, docs & all. While we do have the CI set up, without a commit in project site repo the site won’t get built.

I see two options:

Those options are not mutually exclusive, ideally both would be good. Also, in either case we might want to debounce build triggers to ensure they don’t queue up, unless Travis does that natively.

ronaldtse commented 5 years ago

@strogonoff could you help implement the first option first?

And in the deployment job of the OP site we can set Travis to debounce builds too.

ronaldtse commented 5 years ago

Methods to achieve the first option:

strogonoff commented 5 years ago

@ronaldtse Doing a pilot of this on Metanorma site.

When available, could you please do the following:

  1. Run travis login && travis token
  2. In Travis settings for metanorma.com, create a variable TRAVIS_ACCESS_TOKEN containing the access token shown on previous step. According to how Travis works, variable contents would be visible only to you and won’t be included in logs
  3. Run Travis build to check for failures. (Open hub build should also get triggered)
strogonoff commented 5 years ago

(For now to trigger the build we’re using a third-party script downloaded from GitHub each build, as suggested by some of the links posted by Ronald. If the pilot is successful we might/should switch to hosting the triggering code under our control to avoid unexpected surprises.)

strogonoff commented 5 years ago

@ronaldtse Feel free to ignore this, apparently I have Travis dashboard access for metanorma.com!

ronaldtse commented 5 years ago

Yay! Sorry I completely missed this issue... 😭

strogonoff commented 5 years ago

Current status: