libreschool-iso/.drone.yml

38 lines
1012 B
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:
2020-03-02 11:57:36 +01:00
source_iso_url: http://repo.libreschool.org/nethserver/iso/nethserver-7.7.1908-x86_64.iso
output_iso: libreschool-7.7-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-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:
2020-03-04 20:46:28 +01:00
note: -<
Please download the ISO from
http://repo.libreschool.org/iso/libreschool-7.7-x86_64.iso
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:
2020-03-02 11:57:36 +01:00
source: libreschool-7.7-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