Compare commits

..

No commits in common. "d12eed384e1b9743150789e472bb253226e7a789" and "b551886198d6d4a752e69c28a56d4851dfff8ec5" have entirely different histories.

2 changed files with 31 additions and 69 deletions

View File

@ -1,11 +1,12 @@
kind: pipeline # this is needed by the RPM build plugin
name: default workspace:
base: /build
path: /
steps: pipeline:
- name: create_targz
image: registry.libreschool.org/libreschool-automation/rpm-pack:latest create_targz:
pull: always image: libreschool-automation/rpm-pack:latest
settings:
files: files:
- root - root
- README.md - README.md
@ -13,9 +14,8 @@ steps:
when: when:
event: [ push, tag ] event: [ push, tag ]
- name: build build:
image: registry.libreschool.org/libreschool-automation/rpm-build:6 image: libreschool-automation/rpm-build:latest
pull: always
commands: commands:
- yum-builddep -y nethserver-usercsvimport.spec - yum-builddep -y nethserver-usercsvimport.spec
- rpmbuild -ba nethserver-usercsvimport.spec - rpmbuild -ba nethserver-usercsvimport.spec
@ -23,58 +23,23 @@ steps:
when: when:
event: [ push, tag ] event: [ push, tag ]
- name: sign pkg_sign:
image: registry.libreschool.org/libreschool-automation/rpm-sign:latest image: libreschool-automation/rpm-sign
pull: always
settings:
files: out/*.rpm files: out/*.rpm
gpg_key: secrets: [ gpg_key, passphrase ]
from_secret: gpg_key
passphrase:
from_secret: passphrase
when: when:
event: tag event: tag
- name: gitea_release gitea_release:
group: deploy
image: plugins/gitea-release image: plugins/gitea-release
settings:
files: out/*.rpm files: out/*.rpm
checksum: checksum:
- md5 - md5
- sha1 - sha1
- sha256 - sha256
- sha512 - sha512
api_key: secrets: [ gitea_token ]
from_secret: gitea_token
base_url: https://git.libreschool.org base_url: https://git.libreschool.org
file_exists: skip
when: when:
event: tag event: tag
- name: repo_upload
image: appleboy/drone-scp
settings:
source: out/*.noarch.rpm
target: /vhosts/repo.libreschool.org/https/nethserver/6/devel/x86_64/Packages/
host: repo.libreschool.org
username:
from_secret: ssh_username
key:
from_secret: ssh_key
when:
event: tag
repo: LibreSchool/nethserver-usercsvimport
- name: repo_upload_srpms
image: appleboy/drone-scp
settings:
source: out/*.src.rpm
target: /vhosts/repo.libreschool.org/https/nethserver/6/devel/Source/SPackages/
host: repo.libreschool.org
username:
from_secret: ssh_username
key:
from_secret: ssh_key
when:
event: tag
repo: LibreSchool/nethserver-usercsvimport

View File

@ -1,9 +1,9 @@
%define distroversion 6.10 %define distroversion 6.9
%define distrorelease Final %define distrorelease Final
Summary: Batch import a lot of users and groups. Summary: Batch import a lot of users and groups.
Name: nethserver-usercsvimport Name: nethserver-usercsvimport
Version: 0.2 Version: 0.1
Release: 1 Release: 1
License: GPL License: GPL
BuildArch: noarch BuildArch: noarch
@ -32,8 +32,5 @@ echo "%doc COPYING" >> %{name}-%{version}-%{release}
%defattr(-,root,root) %defattr(-,root,root)
%changelog %changelog
* Thu Apr 25 2019 Paolo Asperti <paolo@asperti.com> - 0.2-1
- Updated target release
* Mon Aug 13 2018 Paolo Asperti <paolo@asperti.com> - 0.1-1 * Mon Aug 13 2018 Paolo Asperti <paolo@asperti.com> - 0.1-1
- First release - First release