54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
|
kind: pipeline
|
||
|
name: default
|
||
|
|
||
|
steps:
|
||
|
- name: create_targz
|
||
|
image: registry.libreschool.org/libreschool-automation/rpm-pack:latest
|
||
|
pull: always
|
||
|
settings:
|
||
|
files:
|
||
|
- root
|
||
|
- createlinks.pl
|
||
|
- README.md
|
||
|
- LICENSE
|
||
|
when:
|
||
|
event: [ push, tag ]
|
||
|
|
||
|
- name: build
|
||
|
image: registry.libreschool.org/libreschool-automation/rpm-build:7
|
||
|
pull: always
|
||
|
commands:
|
||
|
- yum-builddep -y libreschool-client-manager.spec
|
||
|
- rpmbuild -ba libreschool-client-manager.spec
|
||
|
- mkdir out ; mv *.rpm noarch/*.rpm out/
|
||
|
when:
|
||
|
event: [ push, tag ]
|
||
|
|
||
|
- name: sign
|
||
|
image: registry.libreschool.org/libreschool-automation/rpm-sign:latest
|
||
|
pull: always
|
||
|
settings:
|
||
|
files: out/*.rpm
|
||
|
gpg_key:
|
||
|
from_secret: gpg_key
|
||
|
passphrase:
|
||
|
from_secret: passphrase
|
||
|
when:
|
||
|
event: tag
|
||
|
|
||
|
- name: gitea_release
|
||
|
image: plugins/gitea-release
|
||
|
settings:
|
||
|
files: out/*.rpm
|
||
|
checksum:
|
||
|
- md5
|
||
|
- sha1
|
||
|
- sha256
|
||
|
- sha512
|
||
|
api_key:
|
||
|
from_secret: gitea_token
|
||
|
base_url: https://git.libreschool.org
|
||
|
file_exists: skip
|
||
|
when:
|
||
|
event: tag
|