From 411f089bf80a8068d402c67d79d7928a401dfe2d Mon Sep 17 00:00:00 2001 From: Paolo Asperti Date: Mon, 2 Mar 2020 12:27:36 +0100 Subject: [PATCH] rebranding --- .drone.yml | 95 +++++++++----------- startpage.spec => libreschool-startpage.spec | 20 ++--- 2 files changed, 51 insertions(+), 64 deletions(-) rename startpage.spec => libreschool-startpage.spec (82%) diff --git a/.drone.yml b/.drone.yml index b443133..933a0bc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/startpage.spec b/libreschool-startpage.spec similarity index 82% rename from startpage.spec rename to libreschool-startpage.spec index 08b5110..95d9c29 100644 --- a/startpage.spec +++ b/libreschool-startpage.spec @@ -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 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 - 0.9-3 -- ui fixing - -* Sun Jul 8 2018 Paolo Asperti - 0.9-2 -- bug fixing - -* Sun Jul 8 2018 Paolo Asperti - 0.9-1 -- initial release \ No newline at end of file +* Sun Mar 1 2020 Paolo Asperti - 1.0.0-1 +- initial release from old startpage package