Compare commits

..

4 Commits

Author SHA1 Message Date
d953051e5c fixed step execution conditions
All checks were successful
the build was successful
2018-09-29 16:15:55 +02:00
918950ea0d added package signing and deploy
All checks were successful
the build was successful
2018-09-29 16:11:45 +02:00
5945d6f48f added badge in README.md
All checks were successful
the build was successful
2018-08-13 17:01:46 +02:00
69f0a130f0 drone support 2018-08-13 16:59:21 +02:00
2 changed files with 92 additions and 0 deletions

90
.drone.yml Normal file
View 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

View File

@ -1,5 +1,7 @@
# `nethserver-profilemgr` #
[![Build Status](https://drone.libreschool.org/api/badges/LibreSchool/nethserver-profilemgr/status.svg)](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 ##