From b57655afdaa298c364195a5250e0d225a6337143 Mon Sep 17 00:00:00 2001 From: paspo Date: Sat, 1 Dec 2018 11:03:20 +0100 Subject: [PATCH 1/6] drone support --- .drone.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..d0646cc --- /dev/null +++ b/.drone.yml @@ -0,0 +1,41 @@ +# 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-$$RELEASE + files: + - root + - createlinks.pl + - README.md + - COPYING + when: + event: [ push, tag ] + + build: + image: libreschool-automation/rpm-build:latest + commands: + - yum-builddep -y libreschool-nfs.spec + - rpmbuild -ba libreschool-nfs.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 From 12312d55b014c324232877eb09e41be7edc2675b Mon Sep 17 00:00:00 2001 From: paspo Date: Sat, 1 Dec 2018 11:11:58 +0100 Subject: [PATCH 2/6] drone fix --- .drone.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index d0646cc..a399cf7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,7 +11,6 @@ pipeline: dir: $$NAME-$$VERSION-$$RELEASE files: - root - - createlinks.pl - README.md - COPYING when: From f82c4b7e74a42451cee6c9be89ceb8052cf63f9c Mon Sep 17 00:00:00 2001 From: paspo Date: Sat, 1 Dec 2018 11:13:30 +0100 Subject: [PATCH 3/6] drone fix --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index a399cf7..3150c26 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,7 +7,7 @@ pipeline: create_targz: image: libreschool-automation/rpm-pack:latest - dest: $$NAME-$$VERSION-$$RELEASE.tar.gz + dest: $$NAME-$$VERSION.tar.gz dir: $$NAME-$$VERSION-$$RELEASE files: - root From 8d46fd755d01ac22db1aa55e4dd9fdd4242d7f06 Mon Sep 17 00:00:00 2001 From: paspo Date: Sat, 1 Dec 2018 11:14:16 +0100 Subject: [PATCH 4/6] fix --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 3150c26..b822e71 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ pipeline: create_targz: image: libreschool-automation/rpm-pack:latest dest: $$NAME-$$VERSION.tar.gz - dir: $$NAME-$$VERSION-$$RELEASE + dir: $$NAME-$$VERSION files: - root - README.md From 785bdfb93a16d69715ee5e54de69fd97525fe2b9 Mon Sep 17 00:00:00 2001 From: paspo Date: Sat, 1 Dec 2018 11:53:42 +0100 Subject: [PATCH 5/6] package signing --- .drone.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.drone.yml b/.drone.yml index b822e71..92b6067 100644 --- a/.drone.yml +++ b/.drone.yml @@ -24,6 +24,13 @@ pipeline: - mkdir out ; mv *.rpm noarch/*.rpm out/ when: event: [ push, tag ] + + pkg_sign: + image: libreschool-automation/rpm-sign + files: out/*.rpm + secrets: [ gpg_key, passphrase ] + when: + event: [ tag, deployment ] gitea_release: group: deploy From 24aeecafdbc6205bcfc2d6c540fb99886be8af53 Mon Sep 17 00:00:00 2001 From: paspo Date: Sat, 1 Dec 2018 12:57:51 +0100 Subject: [PATCH 6/6] updated readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 42922c9..7df9ab2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # libreschool-nfs # +[![Build Status](https://drone.libreschool.org/api/badges/LibreSchool/libreschool-nfs/status.svg)](https://drone.libreschool.org/LibreSchool/libreschool-nfs) + This package is meant for exporting the users homes via NFS. The NFS should give better performances, compared to samba. Real world benchmarks will follow. This package will install nfs-utils and configure the NFS exports, configure services and ports (for the firewall)