paspo d953051e5c
All checks were successful
the build was successful
fixed step execution conditions
2018-09-29 16:15:55 +02:00

91 lines
2.1 KiB
YAML

# 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