rpm-sign/README.md
paspo bc34e2b47c
All checks were successful
the build was successful
initial import
2018-09-28 14:14:09 +02:00

48 lines
934 B
Markdown

# rpm-sign
[![Build Status](https://drone.libreschool.org/api/badges/libreschool-automation/rpm-sign/status.svg)](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