Starting code

This commit is contained in:
Peter Šurda 2021-12-17 11:03:20 +08:00
parent 765e9a4007
commit 6cb6b47fd9
Signed by untrusted user: PeterSurda
GPG Key ID: 3E47497CF67ABB95

24 Normal file
View File

@ -0,0 +1,24 @@
# TODO: change "ghcontext" in master.cfg to interpolate the job name
# TODO: write upload script
# TODO: write hook (perhaps the default hook is ok), authentication for hook
# TODO: write hook job, maybe also a dockerfile?
# TODO: what to do about non-docker jobs
from os import walk
from os.path import exists, join
def list_jobs(dir="."):
results = []
for d in next(walk(dir()))[1]:
if exists(join(dir, d, "Dockerfile")) \
and (exists(join(dir, d, ""))
or exists(join(dir, d, ""))
return results