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