libreschool-nfs/.drone.yml

48 lines
982 B
YAML
Raw Normal View History

2018-12-01 10:03:20 +00: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 10:13:30 +00:00
dest: $$NAME-$$VERSION.tar.gz
2018-12-01 10:14:16 +00:00
dir: $$NAME-$$VERSION
2018-12-01 10:03:20 +00: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 10:53:42 +00:00
pkg_sign:
image: libreschool-automation/rpm-sign
files: out/*.rpm
secrets: [ gpg_key, passphrase ]
when:
event: [ tag, deployment ]
2018-12-01 10:03:20 +00: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