t1 %{?dist} causes problems fixed source filename that was a bad idea initial commit updated drone
This commit is contained in:
parent
e33f70908c
commit
e2fa40d255
59
.drone.yml
Normal file
59
.drone.yml
Normal file
@ -0,0 +1,59 @@
|
||||
# this is needed by the RPM build plugin
|
||||
workspace:
|
||||
base: /build
|
||||
path: /
|
||||
|
||||
pipeline:
|
||||
create_targz:
|
||||
image: libreschool-automation/rpm-pack:latest
|
||||
dest: $$NAME-$$VERSION-$$RELEASE.tar.gz
|
||||
dir: $$NAME-$$VERSION
|
||||
files:
|
||||
- root
|
||||
- README.md
|
||||
- COPYING
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
|
||||
build:
|
||||
image: libreschool-automation/rpm-build:latest
|
||||
commands:
|
||||
- yum-builddep -y libreschool-release.spec
|
||||
- rpmbuild -ba libreschool-release.spec
|
||||
- mkdir out ; mv *.rpm noarch/*.rpm out/
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
|
||||
gitea_release:
|
||||
group: deploy
|
||||
image: plugins/gitea-release
|
||||
files: out/*.rpm
|
||||
checksum:
|
||||
- md5
|
||||
- sha1
|
||||
- sha256
|
||||
- sha512
|
||||
secrets: [ gitea_token ]
|
||||
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
|
10
README.md
Normal file
10
README.md
Normal file
@ -0,0 +1,10 @@
|
||||
# LibreSchool Release #
|
||||
Adds LibreSchool repository configuration for NethServer Installations.
|
||||
|
||||
|
||||
## Installation on NethServer 6
|
||||
yum localinstall -y https://repo.libreschool.org/nethserver/6/base/x86_64/Packages/libreschool-release-1.0-1.noarch.rpm
|
||||
|
||||
## Installation on NethServer 7
|
||||
yum localinstall -y https://repo.libreschool.org/nethserver/7/base/x86_64/Packages/libreschool-release-1.0-1.noarch.rpm
|
||||
|
@ -1,14 +1,11 @@
|
||||
%define distroversion 6.9
|
||||
%define distrorelease Final
|
||||
|
||||
Summary: LibreSchool YUM repo configuration
|
||||
Name: libreschool-release
|
||||
Version: 6.9
|
||||
Version: 1.0
|
||||
Release: 1
|
||||
License: GPL
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-root
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Source0: %{name}-%{version}-%{release}.tar.gz
|
||||
Source1: COPYING
|
||||
URL: %{url_prefix}/%{name}
|
||||
Requires: nethserver-base
|
||||
@ -33,5 +30,6 @@ echo "%config(noreplace) /etc/yum.repos.d/LibreSchool.repo" >> %{name}-%{version
|
||||
%defattr(-,root,root)
|
||||
|
||||
%changelog
|
||||
* Sun Oct 22 2017 Paolo Asperti <paolo@asperti.com> - 6.9-1
|
||||
- First release
|
||||
* Thu Sep 27 2018 Paolo Asperti <paolo@asperti.com> - 1.0-1
|
||||
- Initial commit
|
||||
|
||||
|
@ -1 +0,0 @@
|
||||
LibreSchool release 6.9 (Final)
|
Loading…
x
Reference in New Issue
Block a user