Compare commits

...

2 Commits

Author SHA1 Message Date
1c1d2a3f93
drone.yml new format - repo upload 2019-04-23 18:25:09 +02:00
65d45d6455
wip 2019-04-22 17:37:47 +02:00
6 changed files with 57 additions and 21 deletions

View File

@ -1,26 +1,40 @@
# workspace:
# base: /build
# path: /
kind: pipeline
name: default
pipeline:
build:
steps:
- name: build
image: registry.libreschool.org/libreschool-automation/libreschool-iso-builder:latest
source_iso_url: http://repo.libreschool.org/nethserver/iso/nethserver-7.6.1810-x86_64.iso
output_iso: libreschool-7.6-x86_64.iso
settings:
source_iso_url: http://repo.libreschool.org/nethserver/iso/nethserver-7.6.1810-x86_64.iso
output_iso: libreschool-7.6-x86_64.iso
when:
event: [ push, tag ]
# THAT'S A BAD IDEA
gitea_release:
group: deploy
- name: gitea_release
image: plugins/gitea-release
files: libreschool-7.6-x86_64.iso
checksum:
- md5
- sha1
- sha256
- sha512
secrets: [ gitea_token ]
base_url: https://git.libreschool.org
settings:
files: libreschool-7.6-x86_64.iso
checksum:
- md5
- sha1
- sha256
- sha512
secrets: [ gitea_token ]
base_url: https://git.libreschool.org
prerelease: true
when:
event: tag
- name: repo_upload
image: appleboy/drone-scp
settings:
source: libreschool-7.6-x86_64.iso
target: /https/iso
host: repo.libreschool.org
username:
from_secret: ssh_username
key:
from_secret: ssh_key
when:
event: tag

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
output.iso

View File

@ -2,4 +2,28 @@
[![Build Status](https://drone.libreschool.org/api/badges/paspo/libreschool-iso/status.svg)](https://drone.libreschool.org/paspo/libreschool-iso)
This tool automates the generation of LibreSchool iso
This tool automates the generation of LibreSchool iso
## how to locally create your ISO file
First, download the build container:
```
docker pull registry.libreschool.org/libreschool-automation/libreschool-iso-builder:latest
```
Then start it with these parameters:
```
docker run --rm \
-v "$PWD:/drone/src" \
-w "/drone/src" \
registry.libreschool.org/libreschool-automation/libreschool-iso-builder:latest
```
If you want to skip the download of the source ISO, you can provide an already downloaded one:
```
docker run --rm \
-v "$PWD:/drone/src" \
-v "$HOME/Downloads/nethserver-7.6.1810-x86_64.iso:/source.iso:ro" \
-w "/drone/src" \
registry.libreschool.org/libreschool-automation/libreschool-iso-builder:latest
```

View File

@ -79,7 +79,6 @@ fi
%packages
@nethserver-iso
@core
startpage
libreschool-release
%end

View File

@ -7,7 +7,6 @@
%packages
@nethserver-iso
@core
startpage
libreschool-release
%end

View File

@ -92,7 +92,6 @@ fi
%packages
@nethserver-iso
@core
startpage
libreschool-release
%end