You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nethserver-usercsvimport/.drone.yml

40 lines
863 B

# 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
- README.md
- COPYING
when:
event: [ push, tag ]
build:
image: libreschool-automation/rpm-build:latest
commands:
- yum-builddep -y nethserver-usercsvimport.spec
- rpmbuild -ba nethserver-usercsvimport.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