updated drone config
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is failing Details

This commit is contained in:
Paolo Asperti 2020-03-01 23:58:16 +01:00
parent 81bd4d22d1
commit fb62493a19
Signed by: paspo
GPG Key ID: 06D46905D19D5182
3 changed files with 41 additions and 34 deletions

View File

@ -1,47 +1,54 @@
# this is needed by the RPM build plugin kind: pipeline
workspace: name: default
base: /build
path: /
pipeline:
create_targz: steps:
image: libreschool-automation/rpm-pack:latest - name: create_targz
dest: $$NAME-$$VERSION-$$RELEASE.tar.gz image: registry.libreschool.org/libreschool-automation/rpm-pack:latest
dir: $$NAME-$$VERSION pull: always
files: settings:
- root files:
- README.md - root
- COPYING - README.md
- COPYING
when: when:
event: [ push, tag, deployment ] event: [ push, tag ]
build: - name: build
image: libreschool-automation/rpm-build:latest image: registry.libreschool.org/libreschool-automation/rpm-build:7
pull: always
commands: commands:
- yum-builddep -y libreschool-release.spec - yum-builddep -y libreschool-release.spec
- 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, deployment ] event: [ push, tag ]
pkg_sign: - name: sign
image: libreschool-automation/rpm-sign image: registry.libreschool.org/libreschool-automation/rpm-sign:latest
files: out/*.rpm pull: always
secrets: [ gpg_key, passphrase ] settings:
files: out/*.rpm
gpg_key:
from_secret: gpg_key
passphrase:
from_secret: passphrase
when: when:
event: tag event: tag
gitea_release: - name: gitea_release
group: deploy
image: plugins/gitea-release image: plugins/gitea-release
files: out/*.rpm settings:
checksum: files: out/*.rpm
- md5 checksum:
- sha1 - md5
- sha256 - sha1
- sha512 - sha256
secrets: [ gitea_token ] - sha512
base_url: https://git.libreschool.org api_key:
from_secret: gitea_token
base_url: https://git.libreschool.org
file_exists: skip
when: when:
event: tag event: tag

View File

@ -6,5 +6,5 @@ Adds LibreSchool repository configuration for NethServer Installations.
yum localinstall -y https://repo.libreschool.org/nethserver/6/base/x86_64/Packages/libreschool-release-1.0-1.noarch.rpm yum localinstall -y https://repo.libreschool.org/nethserver/6/base/x86_64/Packages/libreschool-release-1.0-1.noarch.rpm
## Installation on NethServer 7 ## Installation on NethServer 7
yum localinstall -y https://repo.libreschool.org/nethserver/7/base/x86_64/Packages/libreschool-release-1.0-1.noarch.rpm yum localinstall -y https://repo.libreschool.org/nethserver/7/base/x86_64/Packages/libreschool-release-1.1-1.noarch.rpm

View File

@ -5,7 +5,7 @@ Release: 1
License: GPL License: GPL
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-root BuildRoot: %{_tmppath}/%{name}-root
Source0: %{name}-%{version}-%{release}.tar.gz Source0: %{name}-%{version}.tar.gz
Source1: COPYING Source1: COPYING
URL: %{url_prefix}/%{name} URL: %{url_prefix}/%{name}
BuildRequires: nethserver-devtools BuildRequires: nethserver-devtools