Compare commits

...

8 Commits

Author SHA1 Message Date
Paolo Asperti f9cd821113
NethServer 7 support
continuous-integration/drone/tag Build is passing Details
continuous-integration/drone/push Build encountered an error Details
2019-04-25 21:51:36 +02:00
Paolo Asperti d8a000964c
fix upload path
continuous-integration/drone/tag Build is passing Details
continuous-integration/drone/push Build is passing Details
2019-04-25 21:46:33 +02:00
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 74 additions and 31 deletions

View File

@ -1,21 +1,21 @@
# 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
files:
- root
- README.md
- COPYING
steps:
- name: create_targz
image: registry.libreschool.org/libreschool-automation/rpm-pack:latest
pull: always
settings:
files:
- root
- 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 nethserver-usercsvimport.spec
- rpmbuild -ba nethserver-usercsvimport.spec
@ -23,23 +23,60 @@ pipeline:
when:
event: [ push, tag ]
pkg_sign:
image: libreschool-automation/rpm-sign
files: out/*.rpm
secrets: [ gpg_key, passphrase ]
- 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
gitea_release:
group: deploy
- name: gitea_release
image: plugins/gitea-release
files: out/*.rpm
checksum:
- md5
- sha1
- sha256
- sha512
secrets: [ gitea_token ]
base_url: https://git.libreschool.org
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
- name: repo_upload
image: appleboy/drone-scp
settings:
source: out/*.noarch.rpm
target: /vhosts/repo.libreschool.org/https/nethserver/7/devel/x86_64/Packages/
host: repo.libreschool.org
strip_components: 1
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/7/devel/Source/SPackages/
host: repo.libreschool.org
strip_components: 1
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 7.4
%define distrorelease Final
Summary: Batch import a lot of users and groups.
Name: nethserver-usercsvimport
Version: 0.1
Version: 0.2
Release: 1
License: GPL
BuildArch: noarch
@ -32,5 +32,11 @@ echo "%doc COPYING" >> %{name}-%{version}-%{release}
%defattr(-,root,root)
%changelog
* Thu Apr 25 2019 Paolo Asperti <paolo@asperti.com> - 0.2-2
- Updated target release for NethServer 7
* 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
- First release