Compare commits

...

6 Commits

Author SHA1 Message Date
Paolo Asperti d12eed384e
fix upload pipeline
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2019-04-25 21:37:09 +02:00
Paolo Asperti ce61c49751
don't sign the package on every push 2019-04-25 20:51:29 +02:00
Paolo Asperti ec6249f5ec
fix deploy path 2019-04-25 20:48:08 +02:00
Paolo Asperti c1ac2c6256
removed useless parameters 2019-04-25 20:44:49 +02:00
Paolo Asperti 5fae108eb2
updated target release 2019-04-25 19:52:30 +02:00
Paolo Asperti 20166e8be9
update drone 2019-04-25 19:51:01 +02:00
2 changed files with 69 additions and 31 deletions

View File

@ -1,21 +1,21 @@
# this is needed by the RPM build plugin kind: pipeline
workspace: name: default
base: /build
path: /
pipeline: steps:
- name: create_targz
create_targz: image: registry.libreschool.org/libreschool-automation/rpm-pack:latest
image: libreschool-automation/rpm-pack:latest pull: always
files: settings:
- root files:
- README.md - root
- COPYING - README.md
- COPYING
when: when:
event: [ push, tag ] event: [ push, tag ]
build: - name: build
image: libreschool-automation/rpm-build:latest image: registry.libreschool.org/libreschool-automation/rpm-build:6
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,23 +23,58 @@ pipeline:
when: when:
event: [ push, tag ] event: [ push, tag ]
pkg_sign: - name: sign
image: libreschool-automation/rpm-sign image: registry.libreschool.org/libreschool-automation/rpm-sign:latest
files: out/*.rpm pull: always
secrets: [ gpg_key, passphrase ] settings:
files: out/*.rpm
gpg_key:
from_secret: gpg_key
passphrase:
from_secret: passphrase
when: when:
event: tag event: tag
gitea_release: - name: gitea_release
group: deploy
image: plugins/gitea-release image: plugins/gitea-release
files: out/*.rpm settings:
checksum: files: out/*.rpm
- md5 checksum:
- sha1 - md5
- sha256 - sha1
- sha512 - sha256
secrets: [ gitea_token ] - sha512
base_url: https://git.libreschool.org api_key:
from_secret: gitea_token
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.9 %define distroversion 6.10
%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.1 Version: 0.2
Release: 1 Release: 1
License: GPL License: GPL
BuildArch: noarch BuildArch: noarch
@ -32,5 +32,8 @@ 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