A slightly better submit script.

This commit is contained in:
Ralph Bean
2016-11-14 19:30:59 -05:00
parent 1db4797136
commit e758d461f7
2 changed files with 9 additions and 5 deletions

View File

@@ -1,3 +1,3 @@
{
"scmurl": "git://pkgs.stg.fedoraproject.org/modules/testmodule.git?#48932b90de214d9d13feefbd35246a81b6cb8d49"
"scmurl": "git://pkgs.stg.fedoraproject.org/modules/testmodule.git?#620ec77"
}

View File

@@ -1,7 +1,11 @@
#!/bin/sh
echo "Submmiting a build of modules/testmodule, #020ea37251df5019fde9e7899d2f7d7a987dfbf5"
echo "Using https://localhost:5000/module_build_service/module-builds/"
#!/bin/bash -e
MBS_HOST=${MBS_HOST:-localhost:5000}
echo "Submitting a build of..."
cat submit-build.json
echo "Using https://$MBS_HOST/module_build_service/module-builds/"
echo "NOTE: You need to be a Fedora packager for this to work"
echo
curl --cert ~/.fedora.cert -k -H "Content-Type: text/json" --data @submit-build.json https://localhost:5000/module-build-service/1/module-builds/
curl --cert ~/.fedora.cert -k -H "Content-Type: text/json" --data @submit-build.json https://$MBS_HOST/module-build-service/1/module-builds/
echo