diff options
author | Lars Wirzenius <lwirzenius@wikimedia.org> | 2019-07-22 18:10:47 +0300 |
---|---|---|
committer | Lars Wirzenius <lwirzenius@wikimedia.org> | 2019-07-22 18:10:47 +0300 |
commit | b25fa26e008851b98d116ed1fb96c5e590af37c5 (patch) | |
tree | 01e3ef67421c2c9a9000d9284635f38557794afd | |
parent | ee666d20cee6371bee46e24a44412633bb0bfeea (diff) | |
download | wmf-ci-arch-b25fa26e008851b98d116ed1fb96c5e590af37c5.tar.gz |
Add: debug loggingliw/controller
-rwxr-xr-x | api.py | 2 | ||||
-rwxr-xr-x | curl.sh | 6 |
2 files changed, 8 insertions, 0 deletions
@@ -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) @@ -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 |