2019-05-06 00:19:28 +02:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
2018-12-01 11:03:20 +01:00
|
|
|
|
2019-05-06 00:19:28 +02:00
|
|
|
steps:
|
|
|
|
- name: create_targz
|
|
|
|
image: registry.libreschool.org/libreschool-automation/rpm-pack:latest
|
|
|
|
pull: always
|
|
|
|
settings:
|
|
|
|
files:
|
|
|
|
- root
|
|
|
|
- README.md
|
|
|
|
- COPYING
|
2018-12-01 11:03:20 +01:00
|
|
|
when:
|
|
|
|
event: [ push, tag ]
|
2019-05-06 00:19:28 +02:00
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: registry.libreschool.org/libreschool-automation/rpm-build:7
|
|
|
|
pull: always
|
2018-12-01 11:03:20 +01:00
|
|
|
commands:
|
|
|
|
- yum-builddep -y libreschool-nfs.spec
|
|
|
|
- rpmbuild -ba libreschool-nfs.spec
|
|
|
|
- mkdir out ; mv *.rpm noarch/*.rpm out/
|
|
|
|
when:
|
|
|
|
event: [ push, tag ]
|
2018-12-01 11:53:42 +01:00
|
|
|
|
2019-05-06 00:19:28 +02:00
|
|
|
- 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
|
2018-12-01 11:53:42 +01:00
|
|
|
when:
|
2019-05-06 00:19:28 +02:00
|
|
|
event: tag
|
|
|
|
|
|
|
|
- name: gitea_release
|
2018-12-01 11:03:20 +01:00
|
|
|
image: plugins/gitea-release
|
2019-05-06 00:19:28 +02:00
|
|
|
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
|