libreschool-iso/.drone.yml

42 lines
1.0 KiB
YAML
Raw Normal View History

2019-04-23 18:23:34 +02:00
kind: pipeline
name: default
2019-04-20 14:53:27 +02:00
2019-04-23 18:23:34 +02:00
steps:
- name: build
2019-04-21 17:40:20 +02:00
image: registry.libreschool.org/libreschool-automation/libreschool-iso-builder:latest
2019-04-23 18:23:34 +02:00
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
2019-04-20 14:53:27 +02:00
when:
event: [ push, tag ]
2019-04-22 01:50:09 +02:00
2019-04-22 12:04:59 +02:00
# THAT'S A BAD IDEA
2019-04-23 18:23:34 +02:00
- name: gitea_release
2019-04-22 01:50:09 +02:00
image: plugins/gitea-release
2019-04-23 18:23:34 +02:00
settings:
files: libreschool-7.6-x86_64.iso
checksum:
- md5
- sha1
- sha256
- sha512
2019-04-23 18:29:53 +02:00
api_key:
from_secret: gitea_token
2019-04-23 18:23:34 +02:00
base_url: https://git.libreschool.org
prerelease: true
2019-04-23 18:36:11 +02:00
file_exists: skip
2019-04-22 01:50:09 +02:00
when:
event: tag
2019-04-23 18:23:34 +02:00
- name: repo_upload
image: appleboy/drone-scp
settings:
source: libreschool-7.6-x86_64.iso
2019-04-23 18:46:46 +02:00
target: /vhosts/repo.libreschool.org/https/iso
2019-04-23 18:23:34 +02:00
host: repo.libreschool.org
username:
from_secret: ssh_username
key:
from_secret: ssh_key
when:
event: tag