drone support
This commit is contained in:
parent
126a361d49
commit
b57655afda
41
.drone.yml
Normal file
41
.drone.yml
Normal file
@ -0,0 +1,41 @@
|
||||
# this is needed by the RPM build plugin
|
||||
workspace:
|
||||
base: /build
|
||||
path: /
|
||||
|
||||
pipeline:
|
||||
|
||||
create_targz:
|
||||
image: libreschool-automation/rpm-pack:latest
|
||||
dest: $$NAME-$$VERSION-$$RELEASE.tar.gz
|
||||
dir: $$NAME-$$VERSION-$$RELEASE
|
||||
files:
|
||||
- root
|
||||
- createlinks.pl
|
||||
- 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 ]
|
||||
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user