added drone support #2
90
.drone.yml
Normal file
90
.drone.yml
Normal file
@ -0,0 +1,90 @@
|
||||
# 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
|
||||
|
||||
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/
|
||||
|
||||
pkg_sign:
|
||||
image: libreschool-automation/rpm-sign
|
||||
files: out/*.rpm
|
||||
secrets: [ gpg_key, passphrase ]
|
||||
when:
|
||||
event: [ tag, deployment ]
|
||||
|
||||
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
|
||||
|
||||
deploy_srpm_6:
|
||||
group: deploy
|
||||
image: drone-sftp
|
||||
host: repo.libreschool.org
|
||||
target: /https/nethserver/6/testing/Source/SPackages/
|
||||
secrets: [ sftp_username, sftp_key ]
|
||||
source: out/*.src.rpm
|
||||
when:
|
||||
event: deployment
|
||||
instance: drone.libreschool.org
|
||||
environment: testing
|
||||
|
||||
deploy_rpm_6:
|
||||
group: deploy
|
||||
image: drone-sftp
|
||||
host: repo.libreschool.org
|
||||
target: /https/nethserver/6/testing/x86_64/Packages/
|
||||
secrets: [ sftp_username, sftp_key ]
|
||||
source: out/*.noarch.rpm
|
||||
when:
|
||||
event: deployment
|
||||
instance: drone.libreschool.org
|
||||
environment: testing
|
||||
|
||||
deploy_srpm_7:
|
||||
group: deploy
|
||||
image: drone-sftp
|
||||
host: repo.libreschool.org
|
||||
target: /https/nethserver/7/testing/Source/SPackages/
|
||||
secrets: [ sftp_username, sftp_key ]
|
||||
source: out/*.src.rpm
|
||||
when:
|
||||
event: deployment
|
||||
instance: drone.libreschool.org
|
||||
environment: testing
|
||||
|
||||
deploy_rpm_7:
|
||||
group: deploy
|
||||
image: drone-sftp
|
||||
host: repo.libreschool.org
|
||||
target: /https/nethserver/7/testing/x86_64/Packages/
|
||||
secrets: [ sftp_username, sftp_key ]
|
||||
source: out/*.noarch.rpm
|
||||
when:
|
||||
event: deployment
|
||||
instance: drone.libreschool.org
|
||||
environment: testing
|
@ -1,5 +1,7 @@
|
||||
# `nethserver-profilemgr` #
|
||||
|
||||
[](https://drone.libreschool.org/LibreSchool/nethserver-profilemgr)
|
||||
|
||||
## Progetto Scuola [<img src="https://avatars1.githubusercontent.com/u/12886037?v=3&s=200" width="25" height="25" /> BgLUG][bglug] - Scenery 1 ##
|
||||
|
||||
## What is and what problems solve ##
|
||||
|
Loading…
x
Reference in New Issue
Block a user