drone.yml new format - repo upload
This commit is contained in:
parent
65d45d6455
commit
1c1d2a3f93
48
.drone.yml
48
.drone.yml
@ -1,26 +1,40 @@
|
|||||||
# workspace:
|
kind: pipeline
|
||||||
# base: /build
|
name: default
|
||||||
# path: /
|
|
||||||
|
|
||||||
pipeline:
|
steps:
|
||||||
build:
|
- name: build
|
||||||
image: registry.libreschool.org/libreschool-automation/libreschool-iso-builder:latest
|
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
|
settings:
|
||||||
output_iso: libreschool-7.6-x86_64.iso
|
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:
|
when:
|
||||||
event: [ push, tag ]
|
event: [ push, tag ]
|
||||||
|
|
||||||
# THAT'S A BAD IDEA
|
# THAT'S A BAD IDEA
|
||||||
gitea_release:
|
- name: gitea_release
|
||||||
group: deploy
|
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
files: libreschool-7.6-x86_64.iso
|
settings:
|
||||||
checksum:
|
files: libreschool-7.6-x86_64.iso
|
||||||
- md5
|
checksum:
|
||||||
- sha1
|
- md5
|
||||||
- sha256
|
- sha1
|
||||||
- sha512
|
- sha256
|
||||||
secrets: [ gitea_token ]
|
- sha512
|
||||||
base_url: https://git.libreschool.org
|
secrets: [ gitea_token ]
|
||||||
|
base_url: https://git.libreschool.org
|
||||||
|
prerelease: true
|
||||||
when:
|
when:
|
||||||
event: tag
|
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
|
Loading…
x
Reference in New Issue
Block a user