2018-08-12 16:52:50 +00:00
|
|
|
# rpm-build
|
|
|
|
|
|
|
|
[![Build Status](https://drone.libreschool.org/api/badges/libreschool-automation/rpm-build/status.svg)](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 08:37:32 +00:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
2023-05-13 09:51:49 +00:00
|
|
|
image: git.libreschool.org/libreschool-automation/rpm-build:7
|
2019-04-25 08:37:32 +00:00
|
|
|
pull: always
|
2018-08-12 16:52:50 +00:00
|
|
|
commands:
|
|
|
|
- yum-builddep -y mypackage.spec
|
|
|
|
- rpmbuild -ba mypackage.spec
|
|
|
|
- mkdir out ; mv *.rpm noarch/*.rpm out/
|
|
|
|
```
|