Build Experimental firmware v2020.1.2-1
This commit is contained in:
parent
f390339e80
commit
f3bf83c71c
43
.drone.yml
43
.drone.yml
@ -2,7 +2,7 @@ global-variables:
|
|||||||
env: &env
|
env: &env
|
||||||
image: hoffmannhosting/gluon-builder
|
image: hoffmannhosting/gluon-builder
|
||||||
environment:
|
environment:
|
||||||
input_version: v2020.1.2
|
input_version: v2020.1.2-1
|
||||||
GLUON_SITEDIR: /drone/src/site
|
GLUON_SITEDIR: /drone/src/site
|
||||||
FORCE_UNSAFE_CONFIGURE: 1
|
FORCE_UNSAFE_CONFIGURE: 1
|
||||||
|
|
||||||
@ -10,10 +10,7 @@ global-variables:
|
|||||||
<<: *env
|
<<: *env
|
||||||
commands:
|
commands:
|
||||||
- cd gluon
|
- cd gluon
|
||||||
- make -j6 GLUON_BRANCH=stable GLUON_RELEASE=$input_version-stable GLUON_OUTPUTDIR=output/stable
|
- make -j6 GLUON_BRANCH=experimental GLUON_RELEASE=$input_version-exp GLUON_OUTPUTDIR=output/experimental
|
||||||
- make -j6 GLUON_BRANCH=beta GLUON_RELEASE=$input_version-beta GLUON_OUTPUTDIR=output/beta
|
|
||||||
# Don´t build Experimental. The Experimental Firmware is in another Branch
|
|
||||||
# - make -j6 GLUON_BRANCH=experimental GLUON_RELEASE=$input_version-exp GLUON_OUTPUTDIR=output/experimental
|
|
||||||
|
|
||||||
upload: &upload
|
upload: &upload
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
@ -24,7 +21,7 @@ global-variables:
|
|||||||
from_secret: ssh-update
|
from_secret: ssh-update
|
||||||
strip_components: 6
|
strip_components: 6
|
||||||
when:
|
when:
|
||||||
branch: multidomain
|
branch: experimental
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
@ -43,7 +40,7 @@ steps: &steps
|
|||||||
image: docker:git
|
image: docker:git
|
||||||
commands:
|
commands:
|
||||||
- cd site
|
- cd site
|
||||||
- git checkout multidomain
|
- git checkout multidomain-experimental
|
||||||
|
|
||||||
- name: make update
|
- name: make update
|
||||||
<<: *env
|
<<: *env
|
||||||
@ -152,10 +149,7 @@ steps: &steps
|
|||||||
<<: *env
|
<<: *env
|
||||||
commands:
|
commands:
|
||||||
- cd gluon
|
- cd gluon
|
||||||
- make manifest GLUON_BRANCH=stable GLUON_OUTPUTDIR=output/stable GLUON_RELEASE=$input_version-stable
|
- make manifest GLUON_BRANCH=experimental GLUON_OUTPUTDIR=output/experimental GLUON_RELEASE=$input_version-exp
|
||||||
- make manifest GLUON_BRANCH=beta GLUON_OUTPUTDIR=output/beta GLUON_RELEASE=$input_version-beta
|
|
||||||
# Don´t build Experimental. The Experimental Firmware is in another Branch
|
|
||||||
# - make manifest GLUON_BRANCH=experimental GLUON_OUTPUTDIR=output/experimental GLUON_RELEASE=$input_version-exp
|
|
||||||
|
|
||||||
- name: backup-old-firmware
|
- name: backup-old-firmware
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
@ -168,31 +162,16 @@ steps: &steps
|
|||||||
command_timeout: 120m
|
command_timeout: 120m
|
||||||
script:
|
script:
|
||||||
#- ./rsync-backup-multi.sh
|
#- ./rsync-backup-multi.sh
|
||||||
- rm -rf /srv/fwuploads/troisdorf/multi/stable
|
- rm -rf /srv/fwuploads/troisdorf/multi/experimental
|
||||||
- rm -rf /srv/fwuploads/troisdorf/multi/beta
|
- mkdir /srv/fwuploads/troisdorf/multi/experimental
|
||||||
- mkdir /srv/fwuploads/troisdorf/multi/stable
|
|
||||||
- mkdir /srv/fwuploads/troisdorf/multi/beta
|
|
||||||
when:
|
when:
|
||||||
branch: multidomain
|
branch: experimental
|
||||||
|
|
||||||
- name: upload stable
|
- name: upload experimental
|
||||||
<<: *upload
|
<<: *upload
|
||||||
settings:
|
settings:
|
||||||
target: /srv/fwuploads/troisdorf/multi/stable
|
target: /srv/fwuploads/troisdorf/multi/experimental
|
||||||
source: /drone/src/gluon/output/stable/images/*
|
source: /drone/src/gluon/output/experimental/images/*
|
||||||
|
|
||||||
- name: upload beta
|
|
||||||
<<: *upload
|
|
||||||
settings:
|
|
||||||
target: /srv/fwuploads/troisdorf/multi/beta
|
|
||||||
source: /drone/src/gluon/output/beta/images/*
|
|
||||||
|
|
||||||
# Don´t build Experimental. The Experimental Firmware is in another Branch
|
|
||||||
# - name: upload experimental
|
|
||||||
# <<: *upload
|
|
||||||
# settings:
|
|
||||||
# target: /srv/fwuploads/troisdorf/multi/experimental
|
|
||||||
# source: /drone/src/gluon/output/experimental/images/*
|
|
||||||
|
|
||||||
- name: slack
|
- name: slack
|
||||||
image: plugins/slack
|
image: plugins/slack
|
||||||
|
Loading…
Reference in New Issue
Block a user