datalad / datalad.org

Website sources of datalad.org
https://www.datalad.org
4 stars 10 forks source link

[wishlist] automate publishing of the website (using travis/circle/cron/whatever) #25

Closed yarikoptic closed 6 years ago

yarikoptic commented 7 years ago

would be cool given that now there is more than 1 person working on the website

aqw commented 7 years ago

@yarikoptic If someone writes the patch, and can git push, I'm pretty sure they can make rsync_upload. This feels like automation for the sake of it rather than solving a pain-point.

yarikoptic commented 7 years ago

Please just trust me on this that it (automation) is has an outstanding amount of advantages here. If you really need -- I could elaborate on advantages but I hope it would not be necessary.

aqw commented 7 years ago

Then may I recommend a local cron-job. As I'm not keen on having a remote private key for updating the website.

---Alex

yarikoptic commented 7 years ago

yeap, cron job is another way - -that is how http://neuro.debian.net gets updated...

cons

FWIW credentials could be dedicated for that particular act (uploading, no tty, only one command to run or smth like that, access restricted by IPs) and configured accordingly. Secret key obviously would be encrypted so public wouldn't know.

aqw commented 7 years ago

@yarikoptic The secret key was my biggest concern. Not sure how we inject a private key into a dynamically created build environment defined by an open source script. But obviously you've done it, so let's do it.

Let's avoid cron, and do the full monty.

---Alex

yarikoptic commented 7 years ago

if we go with Travis -- here is howto https://docs.travis-ci.com/user/encryption-keys/ I have used it at some point within datalad's .travis.yml for providing some S3 credentials

aqw commented 6 years ago

Done along with #43 :-D