2019-05-06 00:19:28 +02:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
2018-12-01 11:03:20 +01:00
|
|
|
|
2019-05-06 00:19:28 +02:00
|
|
|
steps:
|
|
|
|
- name: create_targz
|
|
|
|
image: registry.libreschool.org/libreschool-automation/rpm-pack:latest
|
|
|
|
pull: always
|
|
|
|
settings:
|
|
|
|
files:
|
|
|
|
- root
|
|
|
|
- README.md
|
|
|
|
- COPYING
|
2018-12-01 11:03:20 +01:00
|
|
|
when:
|
|
|
|
event: [ push, tag ]
|
2019-05-06 00:19:28 +02:00
|
|
|
|
|
|
|
- name: build
|
|
|
|
image: registry.libreschool.org/libreschool-automation/rpm-build:7
|
|
|
|
pull: always
|
2018-12-01 11:03:20 +01:00
|
|
|
commands:
|
|
|
|
- yum-builddep -y libreschool-nfs.spec
|
|
|
|
- rpmbuild -ba libreschool-nfs.spec
|
|
|
|
- mkdir out ; mv *.rpm noarch/*.rpm out/
|
|
|
|
when:
|
|
|
|
event: [ push, tag ]
|
2018-12-01 11:53:42 +01:00
|
|
|
|
2019-05-06 00:19:28 +02:00
|
|
|
- name: sign
|
|
|
|
image: registry.libreschool.org/libreschool-automation/rpm-sign:latest
|
|
|
|
pull: always
|
|
|
|
settings:
|
|
|
|
files: out/*.rpm
|
|
|
|
gpg_key:
|
|
|
|
from_secret: gpg_key
|
|
|
|
passphrase:
|
|
|
|
from_secret: passphrase
|
2018-12-01 11:53:42 +01:00
|
|
|
when:
|
2019-05-06 00:19:28 +02:00
|
|
|
event: tag
|
|
|
|
|
|
|
|
- name: gitea_release
|
2018-12-01 11:03:20 +01:00
|
|
|
image: plugins/gitea-release
|
2019-05-06 00:19:28 +02:00
|
|
|
settings:
|
|
|
|
files: out/*.rpm
|
|
|
|
checksum:
|
|
|
|
- md5
|
|
|
|
- sha1
|
|
|
|
- sha256
|
|
|
|
- sha512
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
base_url: https://git.libreschool.org
|
|
|
|
file_exists: skip
|
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
|
|
|
|
- name: repo_upload
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
settings:
|
|
|
|
source: out/*.noarch.rpm
|
|
|
|
target: /vhosts/repo.libreschool.org/https/nethserver/7/devel/x86_64/Packages/
|
|
|
|
host: repo.libreschool.org
|
|
|
|
strip_components: 1
|
|
|
|
username:
|
|
|
|
from_secret: ssh_username
|
|
|
|
key:
|
|
|
|
from_secret: ssh_key
|
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
repo: LibreSchool/libreschool-nfs
|
|
|
|
|
|
|
|
- name: repo_upload_srpms
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
settings:
|
|
|
|
source: out/*.src.rpm
|
|
|
|
target: /vhosts/repo.libreschool.org/https/nethserver/7/devel/Source/SPackages/
|
|
|
|
host: repo.libreschool.org
|
|
|
|
strip_components: 1
|
|
|
|
username:
|
|
|
|
from_secret: ssh_username
|
|
|
|
key:
|
|
|
|
from_secret: ssh_key
|
2018-12-01 11:03:20 +01:00
|
|
|
when:
|
|
|
|
event: tag
|
2019-05-06 00:19:28 +02:00
|
|
|
repo: LibreSchool/libreschool-nfs
|