mirror of
https://github.com/IEEE-SB-Passau/pelican-deployment-system.git
synced 2017-09-06 16:35:38 +02:00
20 lines
557 B
Python
Executable File
20 lines
557 B
Python
Executable File
#! /usr/bin/env python3
|
|
|
|
from pelican_deploy import DeploymentRunner
|
|
import pelican_deploy.webhookbottle
|
|
import deploy_config
|
|
import logging
|
|
|
|
logging.basicConfig(level=logging.DEBUG)
|
|
|
|
runners = {name: DeploymentRunner(name, conf)
|
|
for name, conf in deploy_config.RUNNERS.items()}
|
|
|
|
if __name__ == "__main__":
|
|
#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()
|
|
|