2016-06-12 00:22:17 +02:00
|
|
|
#! /usr/bin/env python3
|
|
|
|
|
|
2016-06-13 00:58:13 +02:00
|
|
|
import deploy_config
|
2016-06-12 00:22:17 +02:00
|
|
|
from pelican_deploy import DeploymentRunner
|
2016-06-12 04:17:54 +02:00
|
|
|
import pelican_deploy.webhookbottle
|
2016-06-12 00:22:17 +02:00
|
|
|
import logging
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
runners = {name: DeploymentRunner(name, conf)
|
|
|
|
|
for name, conf in deploy_config.RUNNERS.items()}
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2016-06-12 04:17:54 +02:00
|
|
|
#for r in runners.values():
|
|
|
|
|
# r.build_blocking()
|
|
|
|
|
pelican_deploy.webhookbottle.set_runners(**runners)
|
|
|
|
|
pelican_deploy.webhookbottle.set_github_secret(deploy_config.GITHUB_SECRET)
|
|
|
|
|
pelican_deploy.webhookbottle.devrun()
|
|
|
|
|
|