2018-08-12 18:52:50 +02:00
|
|
|
# rpm-build
|
|
|
|
|
|
|
|
[](https://drone.libreschool.org/libreschool-automation/rpm-build)
|
|
|
|
|
|
|
|
This docker image is used to build source .rpm package.
|
|
|
|
|
|
|
|
|
|
|
|
## Build
|
|
|
|
|
|
|
|
```
|
|
|
|
docker build . -t libreschool-automation/rpm-build:latest
|
|
|
|
```
|
|
|
|
|
|
|
|
## How to use
|
|
|
|
|
|
|
|
```yml
|
2019-04-25 10:37:32 +02:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: registry.libreschool.org/libreschool-automation/rpm-build:latest
|
|
|
|
pull: always
|
|
|
|
working_dir: /build
|
2018-08-12 18:52:50 +02:00
|
|
|
commands:
|
|
|
|
- yum-builddep -y mypackage.spec
|
|
|
|
- rpmbuild -ba mypackage.spec
|
|
|
|
- mkdir out ; mv *.rpm noarch/*.rpm out/
|
|
|
|
```
|