wip
This commit is contained in:
parent
a91381732c
commit
c3936950eb
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
from os import environ
|
||||
from flask import Flask, request
|
||||
from functools import cache
|
||||
from subprocess import check_output
|
||||
|
@ -12,7 +13,7 @@ def build():
|
|||
strategy = request.args['strategy']
|
||||
hook_data = request.get_json()
|
||||
print(hook_data)
|
||||
return check_output([f'/opt/build-server/strategies/{strategy}', json.dumps(hook_data)])
|
||||
return check_output([f"/{environ['STRATEGIES_DIR']}/{strategy}", json.dumps(hook_data)])
|
||||
|
||||
|
||||
if __name__ =='__main__':
|
||||
|
|
Loading…
Reference in a new issue