mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-04 19:28:49 +08:00
A slightly better submit script.
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"scmurl": "git://pkgs.stg.fedoraproject.org/modules/testmodule.git?#48932b90de214d9d13feefbd35246a81b6cb8d49"
|
||||
"scmurl": "git://pkgs.stg.fedoraproject.org/modules/testmodule.git?#620ec77"
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user