42 lines
853 B
YAML
42 lines
853 B
YAML
|
# this is needed by the RPM build plugin
|
||
|
workspace:
|
||
|
base: /build
|
||
|
path: /
|
||
|
|
||
|
pipeline:
|
||
|
|
||
|
create_targz:
|
||
|
image: libreschool-automation/rpm-pack:latest
|
||
|
files:
|
||
|
- Language
|
||
|
- Module
|
||
|
- Template
|
||
|
- roles
|
||
|
- README.md
|
||
|
- LICENSE.txt
|
||
|
when:
|
||
|
event: [ push, tag ]
|
||
|
|
||
|
build:
|
||
|
image: libreschool-automation/rpm-build:latest
|
||
|
commands:
|
||
|
- yum-builddep -y nethserver-networkpackagemanager.spec
|
||
|
- rpmbuild -ba nethserver-networkpackagemanager.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
|