48 lines
934 B
Markdown
48 lines
934 B
Markdown
|
# rpm-sign
|
||
|
|
||
|
[](https://drone.libreschool.org/libreschool-automation/rpm-sign)
|
||
|
|
||
|
CentOS docker image with some packages preinstalled.
|
||
|
This is used to sign .rpm packages.
|
||
|
|
||
|
|
||
|
## Build
|
||
|
|
||
|
```
|
||
|
docker build . -t libreschool-automation/rpm-sign:latest
|
||
|
```
|
||
|
|
||
|
## How NOT to use
|
||
|
|
||
|
```yml
|
||
|
pipeline:
|
||
|
pkg_sign:
|
||
|
image: libreschool-automation/rpm-sign:latest
|
||
|
files: my_package.rpm
|
||
|
gpg_key: []
|
||
|
passphrase: supersecretpassword
|
||
|
|
||
|
```
|
||
|
|
||
|
## How to use
|
||
|
|
||
|
Seriously, don't put the GPG key or the passphrase in .drone.yml.
|
||
|
|
||
|
|
||
|
```yml
|
||
|
pipeline:
|
||
|
pkg_sign:
|
||
|
image: libreschool-automation/rpm-sign:latest
|
||
|
files: my_package.rpm
|
||
|
secrets: [gpg_key, passphrase]
|
||
|
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
|
||
|
- `files` - .rpm packages to sign; defaults to `*.rpm`
|
||
|
- `gpg_key` - the gpg key (public and private)
|
||
|
- `passphrase` - passphrase to unlock the gpg key
|
||
|
|