2020-02-21 16:35:45 +00:00
|
|
|
global-variables:
|
2020-02-21 19:10:56 +00:00
|
|
|
env: &env
|
|
|
|
image: hoffmannhosting/gluon-builder
|
|
|
|
environment:
|
|
|
|
input_version: v2020.1
|
|
|
|
GLUON_SITEDIR: /drone/src/site
|
|
|
|
FORCE_UNSAFE_CONFIGURE: 1
|
|
|
|
|
|
|
|
gluon: &gluon
|
|
|
|
<<: *env
|
|
|
|
commands:
|
|
|
|
- cd gluon
|
|
|
|
- make -j4 GLUON_BRANCH=stable GLUON_RELEASE=$input_version-stable GLUON_OUTPUTDIR=output/stable
|
|
|
|
- make -j4 GLUON_BRANCH=beta GLUON_RELEASE=$input_version-beta GLUON_OUTPUTDIR=output/beta
|
|
|
|
- make -j4 GLUON_BRANCH=experimental GLUON_RELEASE=$input_version-exp GLUON_OUTPUTDIR=output/experimental
|
|
|
|
|
|
|
|
upload: &upload
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
settings:
|
|
|
|
host: 46.4.138.183
|
|
|
|
user: fwupload
|
|
|
|
key:
|
|
|
|
from_secret: ssh-update
|
|
|
|
strip_components: 6
|
2020-02-21 19:28:51 +00:00
|
|
|
when:
|
|
|
|
branch: master
|
2020-02-21 16:35:45 +00:00
|
|
|
|
2019-08-15 16:18:38 +00:00
|
|
|
kind: pipeline
|
2020-02-21 19:28:51 +00:00
|
|
|
type: docker
|
2019-08-15 16:18:38 +00:00
|
|
|
name: gluon-build
|
|
|
|
|
2019-08-15 17:11:54 +00:00
|
|
|
clone:
|
2019-08-15 17:15:25 +00:00
|
|
|
depth: 50
|
2019-08-15 17:11:54 +00:00
|
|
|
|
2019-08-15 16:18:38 +00:00
|
|
|
steps:
|
2019-08-15 17:13:36 +00:00
|
|
|
- name: submodules
|
|
|
|
image: docker:git
|
|
|
|
commands:
|
2019-08-15 18:48:59 +00:00
|
|
|
- git submodule update --recursive --init
|
2019-08-15 17:54:38 +00:00
|
|
|
|
2019-10-09 15:37:39 +00:00
|
|
|
- name: change site to multi
|
2019-08-15 17:54:38 +00:00
|
|
|
image: docker:git
|
|
|
|
commands:
|
|
|
|
- cd site
|
2020-02-21 16:55:42 +00:00
|
|
|
- git checkout multidomain
|
2019-08-15 17:15:25 +00:00
|
|
|
|
2019-08-15 19:44:22 +00:00
|
|
|
- name: make update
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *env
|
2019-08-15 16:18:38 +00:00
|
|
|
commands:
|
2019-08-15 18:51:21 +00:00
|
|
|
- cd gluon
|
2019-08-18 20:26:04 +00:00
|
|
|
- make update
|
2019-08-15 19:45:24 +00:00
|
|
|
environment:
|
|
|
|
GLUON_TARGET: ar71xx-generic
|
2019-08-17 10:14:01 +00:00
|
|
|
|
2020-02-20 11:51:16 +00:00
|
|
|
- name: build-ath79-generic
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2020-02-20 11:51:16 +00:00
|
|
|
environment:
|
|
|
|
GLUON_TARGET: ath79-generic
|
|
|
|
|
2019-08-17 20:59:59 +00:00
|
|
|
- name: build-ar71xx-generic
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2019-08-17 20:59:59 +00:00
|
|
|
environment:
|
|
|
|
GLUON_TARGET: ar71xx-generic
|
|
|
|
|
2019-08-18 21:17:12 +00:00
|
|
|
- name: build-ar71xx-tiny
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2019-08-18 21:17:12 +00:00
|
|
|
environment:
|
|
|
|
GLUON_TARGET: ar71xx-tiny
|
2019-10-13 19:16:32 +00:00
|
|
|
|
|
|
|
- name: build-ar71xx-nand
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2019-10-13 19:16:32 +00:00
|
|
|
environment:
|
|
|
|
GLUON_TARGET: ar71xx-nand
|
|
|
|
|
|
|
|
- name: build-brcm2708-bcm2708
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2019-10-13 19:16:32 +00:00
|
|
|
environment:
|
|
|
|
GLUON_TARGET: brcm2708-bcm2708
|
|
|
|
|
|
|
|
- name: build-brcm2708-bcm2709
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2019-10-13 19:16:32 +00:00
|
|
|
environment:
|
|
|
|
GLUON_TARGET: brcm2708-bcm2709
|
|
|
|
|
|
|
|
- name: build-mpc85xx-generic
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2019-10-13 19:16:32 +00:00
|
|
|
environment:
|
|
|
|
GLUON_TARGET: mpc85xx-generic
|
|
|
|
|
|
|
|
- name: build-mpc85xx-p1020
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2019-10-13 19:16:32 +00:00
|
|
|
environment:
|
|
|
|
GLUON_TARGET: mpc85xx-p1020
|
|
|
|
|
|
|
|
- name: build-x86-generic
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2019-10-13 19:16:32 +00:00
|
|
|
environment:
|
|
|
|
GLUON_TARGET: x86-generic
|
|
|
|
|
|
|
|
- name: build-x86-geode
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2019-10-13 19:16:32 +00:00
|
|
|
environment:
|
|
|
|
GLUON_TARGET: x86-geode
|
|
|
|
|
|
|
|
- name: build-x86-64
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2019-10-13 19:16:32 +00:00
|
|
|
environment:
|
|
|
|
GLUON_TARGET: x86-64
|
|
|
|
|
2020-02-20 11:51:16 +00:00
|
|
|
- name: build-ipq40xx-generic
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2020-02-20 11:51:16 +00:00
|
|
|
environment:
|
|
|
|
GLUON_TARGET: ipq40xx-generic
|
|
|
|
|
|
|
|
- name: ipq806x-generic
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2019-10-13 19:16:32 +00:00
|
|
|
environment:
|
2020-02-20 11:51:16 +00:00
|
|
|
GLUON_TARGET: ipq806x-generic
|
2019-10-13 19:16:32 +00:00
|
|
|
|
|
|
|
- name: build-ramips-mt7620
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2019-10-13 19:16:32 +00:00
|
|
|
environment:
|
|
|
|
GLUON_TARGET: ramips-mt7620
|
|
|
|
|
|
|
|
- name: build-ramips-mt7621
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2019-10-13 19:16:32 +00:00
|
|
|
environment:
|
|
|
|
GLUON_TARGET: ramips-mt7621
|
|
|
|
|
|
|
|
- name: build-ramips-mt76x8
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2019-10-13 19:16:32 +00:00
|
|
|
environment:
|
|
|
|
GLUON_TARGET: ramips-mt76x8
|
|
|
|
|
|
|
|
- name: build-ramips-rt305x
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2019-10-13 19:16:32 +00:00
|
|
|
environment:
|
|
|
|
GLUON_TARGET: ramips-rt305x
|
2019-08-18 21:17:12 +00:00
|
|
|
|
2020-02-20 11:51:16 +00:00
|
|
|
- name: lantiq-xway
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2020-02-20 11:51:16 +00:00
|
|
|
environment:
|
|
|
|
GLUON_TARGET: lantiq-xway
|
|
|
|
|
|
|
|
- name: lantiq-xrx200
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2020-02-20 11:51:16 +00:00
|
|
|
environment:
|
|
|
|
GLUON_TARGET: lantiq-xrx200
|
|
|
|
|
2019-08-17 10:38:59 +00:00
|
|
|
- name: make manifest
|
|
|
|
commands:
|
2019-08-17 11:13:04 +00:00
|
|
|
- cd gluon
|
2019-10-14 17:27:06 +00:00
|
|
|
- make manifest GLUON_BRANCH=stable GLUON_OUTPUTDIR=output/stable GLUON_RELEASE=$input_version-stable
|
|
|
|
- make manifest GLUON_BRANCH=beta GLUON_OUTPUTDIR=output/beta GLUON_RELEASE=$input_version-beta
|
|
|
|
- make manifest GLUON_BRANCH=experimental GLUON_OUTPUTDIR=output/experimental GLUON_RELEASE=$input_version-exp
|
2019-08-18 21:17:12 +00:00
|
|
|
|
|
|
|
- name: backup-old-firmware
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *gluon
|
2019-08-18 21:17:12 +00:00
|
|
|
image: appleboy/drone-ssh
|
|
|
|
settings:
|
|
|
|
host: 46.4.138.183
|
|
|
|
username: fwupload
|
|
|
|
key:
|
|
|
|
from_secret: ssh-update
|
|
|
|
port: 22
|
|
|
|
command_timeout: 120m
|
|
|
|
script:
|
2019-10-09 15:37:39 +00:00
|
|
|
#- ./rsync-backup-multi.sh
|
2019-10-13 19:16:32 +00:00
|
|
|
- rm -rf /srv/fwuploads/troisdorf/multi/*
|
2019-10-09 15:37:39 +00:00
|
|
|
- mkdir /srv/fwuploads/troisdorf/multi/stable
|
|
|
|
- mkdir /srv/fwuploads/troisdorf/multi/beta
|
|
|
|
- mkdir /srv/fwuploads/troisdorf/multi/experimental
|
2019-08-18 21:17:12 +00:00
|
|
|
|
2019-10-14 17:27:06 +00:00
|
|
|
- name: upload stable
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *upload
|
2019-10-14 17:27:06 +00:00
|
|
|
settings:
|
|
|
|
target: /srv/fwuploads/troisdorf/multi/stable
|
|
|
|
source: /drone/src/gluon/output/stable/images/*
|
|
|
|
|
|
|
|
- name: upload beta
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *upload
|
2019-10-14 17:27:06 +00:00
|
|
|
settings:
|
|
|
|
target: /srv/fwuploads/troisdorf/multi/beta
|
|
|
|
source: /drone/src/gluon/output/beta/images/*
|
2019-08-18 21:17:12 +00:00
|
|
|
|
2019-08-18 21:19:32 +00:00
|
|
|
- name: upload experimental
|
2020-02-21 19:10:56 +00:00
|
|
|
<<: *upload
|
2019-08-18 21:17:12 +00:00
|
|
|
settings:
|
2019-10-09 15:37:39 +00:00
|
|
|
target: /srv/fwuploads/troisdorf/multi/experimental
|
2019-08-18 21:17:12 +00:00
|
|
|
source: /drone/src/gluon/output/experimental/images/*
|
|
|
|
|
|
|
|
- name: slack
|
|
|
|
image: plugins/slack
|
|
|
|
settings:
|
|
|
|
webhook:
|
|
|
|
from_secret: slack_webhook
|
2019-08-21 15:32:56 +00:00
|
|
|
channel: fftdf_firmware
|