summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xapi.py2
-rwxr-xr-xcurl.sh6
2 files changed, 8 insertions, 0 deletions
diff --git a/api.py b/api.py
index bc61783..cca9ba2 100755
--- a/api.py
+++ b/api.py
@@ -336,6 +336,8 @@ class Deployer(API):
]
def _publish(self):
+ r = bottle.request
+ logging.debug('_publish called: %r %r', dict(r.headers), r.body)
spec = bottle.request.json
logging.info('Publishing: %r', spec)
diff --git a/curl.sh b/curl.sh
index 412192c..c4ff163 100755
--- a/curl.sh
+++ b/curl.sh
@@ -27,6 +27,12 @@ case "$cmd" in
runcurl -X GET https://wmf2-artifacts.vm.liw.fi/blobs/"$1"
;;
+ deploy)
+ runcurl -sv -X POST --data-binary @"$1" \
+ -H "Content-Type: application/octet-stream" \
+ https://wmf2-deployer.vm.liw.fi/publish
+ ;;
+
*)
echo "eek" 1>&2
exit 1