utils README

This commit is contained in:
Trevor Batley 2024-11-15 14:04:19 +11:00
parent 3c674d4f26
commit cdb822566e

View File

@ -3,19 +3,19 @@
## sign_build.sh ## sign_build.sh
Sign all rpms for a particular build Sign all rpms for a particular build
sign_rpm.sh <n-v-r | build_id | package | rpm> [<arch=*> | <debuginfo> | <latestfrom=> | <rpm> | <gpg_name=kojiadmin@koozali.org> | <debug>] sign_rpm.sh <n-v-r | build_id | package | rpm> [<arch=*> | <debuginfo> | <latestfrom=> | <gpg_name=kojiadmin@koozali.org> | <debug>]
Required: (one of only) Required: (one of only)
- n-v-r: of the build (e.g. smeserver-backup-11.0.0-7.el8) - n-v-r: of the build (e.g. smeserver-backup-11.0.0-7.el8)
- build_id: e.g. 643 - build_id: e.g. 643
- package: e.g. smeserver-backup (used in conjunction with <latestfrom>) - package: e.g. smeserver-backup (used in conjunction with \<latestfrom\>)
- rpm: to sign a specific rpm (used in conjunction with <rpm>) - rpm: to sign a specific rpm
Optional: Optional:
- arch=<arch>: only rpms for these arches (comma seperated list - defaults to all) - arch=`arch`: only rpms for these arches (comma seperated list - defaults to all)
- nodebuginfo: do NOT include debug rpms (defaults to included) - nodebuginfo: do NOT include debug rpms (defaults to included)
- latestfrom=<tag>: used with <package> and will use the latest build for this tag - latestfrom=`tag`: used with \<package\> and will use the latest build for this tag
- gpg_name=<gpg name>: name used to create the gpg key we want to sign with (default kojiadmin@koozali.org) - gpg_name=`gpg name`: name used to create the gpg key we want to sign with (default kojiadmin@koozali.org)
- debug: display debug information - debug: display debug information
## sign_build_list.sh ## sign_build_list.sh
@ -27,10 +27,10 @@ Required:
- file name of list containing builds to be signed - file name of list containing builds to be signed
Optional: Optional:
- arch=<arch>: only rpms for these arches (comma seperated list - defaults to all) - arch=`arch`: only rpms for these arches (comma seperated list - defaults to all)
- nodebuginfo: do NOT include debug rpms (defaults to included) - nodebuginfo: do NOT include debug rpms (defaults to included)
- gpg_name=<gpg name>: name used to create the gpg key we want to sign with (default kojiadmin@koozali.org) - gpg_name=`gpg name`: name used to create the gpg key we want to sign with (default kojiadmin@koozali.org)
- gpg_key=<gpg_key>: if you want to check if they have already been signed with this key (default - don't check) - gpg_key=`gpg_key`: if you want to check if they have already been signed with this key (default - don't check)
- debug: display debug information - debug: display debug information
- dry_run: do a 'dry run' and only show what will be executed, don't do it - dry_run: do a 'dry run' and only show what will be executed, don't do it
@ -39,5 +39,5 @@ Queue a build the latest tag for each package supplied in a file (1 package per
queue-builds.sh <filename> [ <wait> | <org=smeserver> ] queue-builds.sh <filename> [ <wait> | <org=smeserver> ]
- <wait> to wait for one build to complete before submitting the next one (default is nowait - queue them all) - `wait` to wait for one build to complete before submitting the next one (default is nowait - queue them all)
- <org=organisation> (default is smecontribs) - `org=organisation` (default is smecontribs)