-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CI #2
Comments
the account in circleci https://circleci.com/setup-project/gh/iml-wg/cwp |
Hi @matthewfeickert en travisci you dont need a server for the ci deploy, they can provide a free virtual machine with docker for that. |
@omazapa Maybe I don't understand what you mean, but I am just saying that it would be nice to setup a web accessible location to deploy the version of the CWP that the CI builds to. As an example of what I mean, I am hosting the built pdfs of my department's Ph.D. template on my personal webspace and the CI deploys it to there. The reason that I'm suggesting CircleCI instead of Travis is that with Circle you can choose to use a Docker image other then one they supply, while using non-Travis images is a huge pain (I've only ever figured out how to deal with this by pulling the image I want to use into Travis and then running |
@matthewfeickert ahhh ok, |
Hi @matthewfeickert commit and push it and automatically github pages will update it in Cheers, |
@omazapa Sorry for the late follow up (have been travelling). This all sounds good. My only question is if you have suggestions on how to properly add authentication keys to do the cloning and pushing. That is, do you have a suggestion of how to add a hashed key into the CI (something along the lines of this, which seems like the better option then having secret variables that are full ssh keys stored in the project settings on GitHub)? |
@omazapa Actually, I guess CircleCI has docs for this. Given that you have admin controls for the oprojects.github.io repo can you add a deploy key to it following those instructions, and then just let me know what the fingerprint is (or maybe you can do all of this just through the CircleCI interface? --- not sure)? |
Hi @matthewfeickert |
@omazapa Okay this seems to work. However, doing things this way is going to result in a lot of commits to the oprojects.github.io repo, which would essentially pollute the commit history. I am going to try to see if I can figure out a way when the CI runs on a PR for the CWP if it can then create a PR for the oprojects.github.io repo or add a commit to an existing PR for the oprojects.github.io repo. |
@omazapa @SergeiML To avoid the concerns I had with polluting the OProject Git repo history I've created a CERN internal web area on my EOS space (it used to be all ATLAS internal) that the CI now deploys to: https://cern.ch/feickert/IML-CWP/ For the time being when we are still doing lots of revisions we can use this area, and then once we've settled down into the final stages we can switch the CI deployment back to OProject's webpage. I've detailed what will need to be done in the future in Issue #6. |
config.yml
using LaTeX-Docker (Example)The idea is to setup a CI system to make sure that everything is still building as expected (c.f. here for an example of this in action)
The text was updated successfully, but these errors were encountered: