smeserver-koji/utils/README.md

44 lines
1.9 KiB
Markdown
Raw Permalink Normal View History

2024-11-15 01:58:24 +01:00
# Supporting utility scripts
## sign_build.sh
Sign all rpms for a particular build
2024-11-15 04:04:19 +01:00
sign_rpm.sh <n-v-r | build_id | package | rpm> [<arch=*> | <debuginfo> | <latestfrom=> | <gpg_name=kojiadmin@koozali.org> | <debug>]
Required: (one of only)
- n-v-r: of the build (e.g. smeserver-backup-11.0.0-7.el8)
- build_id: e.g. 643
2024-11-15 04:04:19 +01:00
- package: e.g. smeserver-backup (used in conjunction with \<latestfrom\>)
- rpm: to sign a specific rpm
Optional:
2024-11-15 04:04:19 +01:00
- arch=`arch`: only rpms for these arches (comma seperated list - defaults to all)
- nodebuginfo: do NOT include debug rpms (defaults to included)
2024-11-15 04:04:19 +01:00
- 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)
- debug: display debug information
2024-11-15 01:58:24 +01:00
## sign_build_list.sh
Sign all rpms for each build specified in a file (1 line per build)
sign_build_list.sh <pkg list> [<arch=*> | <gpg_name=kojiadmin@koozali.org> | <gpg_key=44922a28> | <nodebuginfo> | <debug> | <dryrun> ]
Required:
- file name of list containing builds to be signed
Optional:
2024-11-15 04:04:19 +01:00
- arch=`arch`: only rpms for these arches (comma seperated list - defaults to all)
- nodebuginfo: do NOT include debug rpms (defaults to included)
2024-11-15 04:04:19 +01:00
- 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)
- debug: display debug information
- dry_run: do a 'dry run' and only show what will be executed, don't do it
2024-11-15 01:58:24 +01:00
## queue_builds.sh
Queue a build the latest tag for each package supplied in a file (1 package per line)
queue-builds.sh <filename> [ <wait> | <org=smeserver> ]
2024-11-15 01:58:24 +01:00
2024-11-15 04:04:19 +01:00
- `wait` to wait for one build to complete before submitting the next one (default is nowait - queue them all)
- `org=organisation` (default is smecontribs)