cia-foundation / TempleOS

Talk to God on up to 64 cores. Final snapshot of the Third Temple.
https://templeos.org/
3.01k stars 259 forks source link

Bringing back commit bot #3

Closed ohnx closed 6 years ago

ohnx commented 7 years ago

Is the commit bot open source?

I have a spare VPS I wouldn't mind running it on.

minexew commented 7 years ago

Hello, and thank you for the interest.

Bulk of the work is done by autoupdate.py which is present in this repository.

Quoting from my personal notes, which should pretty closely reflect the setup I used:

TempleOS-bot Setup

templeos.hourly

#!/bin/bash

cd
cd TempleOS
./autoupdate.py
git push origin nightly

templeos

#!/bin/bash

/bin/su - git-bot -c /home/git-bot/templeos.hourly

End quote.

I'll be glad to answer any further questions.

minexew commented 7 years ago

I'm having trouble extracting the latest TOS_Distro.ISO. Has Terry moved away from using ISO9660? That would break the script.

minexew commented 7 years ago

Please see #4. Would you be interested in tackling that issue as well?

ghost commented 6 years ago

Well, since I see that the OP didn't reply, I would like to volunteer myself to host the commit bot.

minexew commented 6 years ago

All the needed code is out there, I can only wish you good luck setting it up. Feel free to ask if you run into any specific issues.

If you get it working, I'll give you push access to the repo or something

ohnx commented 6 years ago

Hey so @ghost brought this issue to my attention again... I still have that VPS!

I've been trying to run the autoupdate and extract_templeos scripts and ran into a few issues but I think I've solved them all now. For future reference:

  1. fuse not found (need pip3 install fusepy, not apt install python-fuse)
  2. ./TOSZ not found (copy it from Downloads/TOSZ)
  3. failing to os.remove() some files (use try-except OSError)

Anyways, I got everything working + running as a cron job now. If you want, you can let ohnxbot be a collaborator and I'll update the remote on my end (right now it's just pushing to a fork).

Also, right now the VPS is configured to push to master every day at 00:00 EDT.

minexew commented 6 years ago

I sent you an invite a few days ago.

ohnxbot commented 6 years ago

Whoops! Thanks for the reminder, I don't usually check this email.

ohnx commented 6 years ago

Bot works.