2018-12-01 11:03:20 +01:00
|
|
|
# this is needed by the RPM build plugin
|
|
|
|
workspace:
|
|
|
|
base: /build
|
|
|
|
path: /
|
|
|
|
|
|
|
|
pipeline:
|
|
|
|
|
|
|
|
create_targz:
|
|
|
|
image: libreschool-automation/rpm-pack:latest
|
2018-12-01 11:13:30 +01:00
|
|
|
dest: $$NAME-$$VERSION.tar.gz
|
2018-12-01 11:14:16 +01:00
|
|
|
dir: $$NAME-$$VERSION
|
2018-12-01 11:03:20 +01:00
|
|
|
files:
|
|
|
|
- root
|
|
|
|
- README.md
|
|
|
|
- COPYING
|
|
|
|
when:
|
|
|
|
event: [ push, tag ]
|
|
|
|
|
|
|
|
build:
|
|
|
|
image: libreschool-automation/rpm-build:latest
|
|
|
|
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
|
|
|
|
|
|
|
pkg_sign:
|
|
|
|
image: libreschool-automation/rpm-sign
|
|
|
|
files: out/*.rpm
|
|
|
|
secrets: [ gpg_key, passphrase ]
|
|
|
|
when:
|
|
|
|
event: [ tag, deployment ]
|
2018-12-01 11:03:20 +01:00
|
|
|
|
|
|
|
gitea_release:
|
|
|
|
group: deploy
|
|
|
|
image: plugins/gitea-release
|
|
|
|
files: out/*.rpm
|
|
|
|
checksum:
|
|
|
|
- md5
|
|
|
|
- sha1
|
|
|
|
- sha256
|
|
|
|
- sha512
|
|
|
|
secrets: [ gitea_token ]
|
|
|
|
base_url: https://git.libreschool.org
|
|
|
|
when:
|
|
|
|
event: tag
|