rebranding
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Paolo Asperti 2020-03-02 12:27:36 +01:00 committed by paspo
parent b01e3b6651
commit 411f089bf8
Signed by: paspo
GPG Key ID: 06D46905D19D5182
2 changed files with 51 additions and 64 deletions

View File

@ -1,61 +1,54 @@
# this is needed by the RPM build plugin
workspace:
base: /build
path: /
kind: pipeline
name: default
pipeline:
create_targz:
image: libreschool-automation/rpm-pack:latest
dest: $$NAME-$$VERSION-$$RELEASE.tar.gz
dir: $$NAME-$$VERSION-$$RELEASE
files:
- root
- createlinks.pl
- README.md
- COPYING
steps:
- name: create_targz
image: registry.libreschool.org/libreschool-automation/rpm-pack:latest
pull: always
settings:
dir: $$NAME-$$VERSION-$$RELEASE
files:
- root
- createlinks.pl
- README.md
- COPYING
when:
event: [ push, tag ]
build:
image: libreschool-automation/rpm-build:latest
- name: build
image: registry.libreschool.org/libreschool-automation/rpm-build:7
pull: always
commands:
- yum-builddep -y startpage.spec
- rpmbuild -ba startpage.spec
- yum-builddep -y libreschool-startpage.spec
- rpmbuild -ba libreschool-startpage.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
- 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
# 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
- 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

View File

@ -1,8 +1,8 @@
Summary: Manage a start page for all clients
Name: startpage
Version: 0.9
Release: 3.ns6
URL: https://github.com/libreschool/startpage/
Name: libreschool-startpage
Version: 1.0.0
Release: 1
URL: https://git.libreschool.org/LibreSchool/libreschool-startpage
License: GPLv3+
Packager: Paolo Asperti <paolo@asperti.com>
Group: System Environment/Daemons
@ -13,7 +13,7 @@ Requires: httpd, sudo,
Requires: nethserver-base
Requires: python-jinja2
Requires: net-tools
Source0: %{name}-%{version}-%{release}.tar.gz
Source0: %{name}-%{version}.tar.gz
Source1: createlinks.pl
BuildArch: noarch
@ -71,11 +71,5 @@ rm -rf %{buildroot}
%doc README.md COPYING
%changelog
* Wed Jul 18 2018 Paolo Asperti <paolo@asperti.com> - 0.9-3
- ui fixing
* Sun Jul 8 2018 Paolo Asperti <paolo@asperti.com> - 0.9-2
- bug fixing
* Sun Jul 8 2018 Paolo Asperti <paolo@asperti.com> - 0.9-1
- initial release
* Sun Mar 1 2020 Paolo Asperti <paolo@asperti.com> - 1.0.0-1
- initial release from old startpage package