This commit is contained in:
parent
e2fa40d255
commit
9d5cf35b46
67
.drone.yml
67
.drone.yml
@ -13,7 +13,7 @@ pipeline:
|
||||
- README.md
|
||||
- COPYING
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
event: [ push, tag, deployment ]
|
||||
|
||||
build:
|
||||
image: libreschool-automation/rpm-build:latest
|
||||
@ -22,7 +22,14 @@ pipeline:
|
||||
- rpmbuild -ba libreschool-release.spec
|
||||
- mkdir out ; mv *.rpm noarch/*.rpm out/
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
event: [ push, tag, deployment ]
|
||||
|
||||
pkg_sign:
|
||||
image: libreschool-automation/rpm-sign
|
||||
files: out/*.rpm
|
||||
secrets: [ gpg_key, passphrase ]
|
||||
when:
|
||||
event: tag
|
||||
|
||||
gitea_release:
|
||||
group: deploy
|
||||
@ -37,23 +44,39 @@ pipeline:
|
||||
base_url: https://git.libreschool.org
|
||||
when:
|
||||
event: tag
|
||||
|
||||
# deploy_srpm:
|
||||
# group: deploy
|
||||
# image: drone-sftp
|
||||
# host: repo.libreschool.org
|
||||
# target: /https/nethserver/6/devel/Source/SPackages/
|
||||
# secrets: [ sftp_username, sftp_key ]
|
||||
# source: out/*.src.rpm
|
||||
# when:
|
||||
# event: tag
|
||||
#
|
||||
# deploy_rpm:
|
||||
# group: deploy
|
||||
# image: drone-sftp
|
||||
# host: repo.libreschool.org
|
||||
# target: /https/nethserver/6/devel/x86_64/Packages/
|
||||
# secrets: [ sftp_username, sftp_key ]
|
||||
# source: out/*.noarch.rpm
|
||||
# when:
|
||||
# event: tag
|
||||
matrix:
|
||||
NETHSERVER_VERSION: 6
|
||||
DEPLOY_ENVIRONMENT: base
|
||||
|
||||
deploy_srpm:
|
||||
group: deploy
|
||||
image: drone-sftp
|
||||
host: repo.libreschool.org
|
||||
target: /https/nethserver/${NETHSERVER_VERSION}/${DEPLOY_ENVIRONMENT}/Source/SPackages/
|
||||
secrets: [ sftp_username, sftp_key ]
|
||||
source: out/*.src.rpm
|
||||
when:
|
||||
event: deployment
|
||||
instance: drone.libreschool.org
|
||||
environment: ${DEPLOY_ENVIRONMENT}
|
||||
|
||||
deploy_rpm:
|
||||
group: deploy
|
||||
image: drone-sftp
|
||||
host: repo.libreschool.org
|
||||
target: /https/nethserver/${NETHSERVER_VERSION}/${DEPLOY_ENVIRONMENT}/x86_64/Packages/
|
||||
secrets: [ sftp_username, sftp_key ]
|
||||
source: out/*.noarch.rpm
|
||||
when:
|
||||
event: deployment
|
||||
instance: drone.libreschool.org
|
||||
environment: ${DEPLOY_ENVIRONMENT}
|
||||
|
||||
matrix:
|
||||
NETHSERVER_VERSION:
|
||||
- 6
|
||||
- 7
|
||||
DEPLOY_ENVIRONMENT:
|
||||
- base
|
||||
- devel
|
||||
- testing
|
Loading…
x
Reference in New Issue
Block a user