You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
1.9 KiB

kind: pipeline
name: default
steps:
- name: create_targz
image: registry.libreschool.org/libreschool-automation/rpm-pack:latest
pull: always
settings:
files:
- root
- README.md
- COPYING
when:
event: [ push, tag ]
- name: build
image: registry.libreschool.org/libreschool-automation/rpm-build:7
pull: always
commands:
- yum-builddep -y nethserver-usercsvimport.spec
- rpmbuild -ba nethserver-usercsvimport.spec
- mkdir out ; mv *.rpm noarch/*.rpm out/
when:
event: [ push, tag ]
- 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
when:
event: tag
- name: gitea_release
image: plugins/gitea-release
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/nethserver-usercsvimport
- 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
when:
event: tag
repo: LibreSchool/nethserver-usercsvimport