drone support
the build was successful Details

This commit is contained in:
Paolo Asperti 2018-08-13 16:59:21 +02:00
parent ce625c324a
commit 69f0a130f0
1 changed files with 39 additions and 0 deletions

39
.drone.yml Normal file
View File

@ -0,0 +1,39 @@
# this is needed by the RPM build plugin
workspace:
base: /build
path: /
pipeline:
create_targz:
image: libreschool-automation/rpm-pack:latest
files:
- root
- createlinks.pl
- README.md
- LICENSE.txt
when:
event: [ push, tag ]
build:
image: libreschool-automation/rpm-build:latest
commands:
- yum-builddep -y nethserver-profilemgr.spec
- rpmbuild -ba nethserver-profilemgr.spec
- mkdir out ; mv *.rpm noarch/*.rpm out/
when:
event: [ push, tag ]
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