gluon-ci/.drone.yml

310 lines
11 KiB
YAML
Raw Normal View History

2019-08-15 16:18:38 +00:00
kind: pipeline
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
2019-10-09 15:37:39 +00:00
- git checkout v2019.1-multi
2019-08-15 17:15:25 +00:00
2019-08-15 19:44:22 +00:00
- name: make update
2019-08-15 16:18:38 +00:00
image: hoffmannhosting/gluon-builder
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:
2019-10-09 15:37:39 +00:00
input_hood: multi
2019-09-29 09:37:13 +00:00
input_version: v2019.1
2019-08-15 19:45:24 +00:00
GLUON_SITEDIR: /drone/src/site
GLUON_TARGET: ar71xx-generic
FORCE_UNSAFE_CONFIGURE: 1
2019-08-17 10:14:01 +00:00
2019-08-17 20:59:59 +00:00
- name: build-ar71xx-generic
image: hoffmannhosting/gluon-builder
commands:
- cd gluon
2019-10-13 18:20:51 +00:00
- make -j4 GLUON_BRANCH=stable GLUON_RELEASE=$input_hood-stable-$input_version GLUON_OUTPUTDIR=output/stable
2019-09-15 20:10:08 +00:00
- make -j4 GLUON_BRANCH=beta GLUON_RELEASE=$input_hood-beta-$input_version GLUON_OUTPUTDIR=output/beta
- make -j4 GLUON_BRANCH=experimental GLUON_RELEASE=$input_hood-exp-$input_version GLUON_OUTPUTDIR=output/experimental
2019-08-17 20:59:59 +00:00
environment:
2019-10-09 15:37:39 +00:00
input_hood: multi
2019-09-29 09:37:13 +00:00
input_version: v2019.1
2019-08-17 20:59:59 +00:00
GLUON_SITEDIR: /drone/src/site
GLUON_TARGET: ar71xx-generic
FORCE_UNSAFE_CONFIGURE: 1
2019-08-18 21:17:12 +00:00
- name: build-ar71xx-tiny
image: hoffmannhosting/gluon-builder
commands:
- cd gluon
2019-09-15 20:10:08 +00:00
- make -j4 GLUON_BRANCH=stable GLUON_RELEASE=$input_hood-stable-$input_version GLUON_OUTPUTDIR=output/stable
- make -j4 GLUON_BRANCH=beta GLUON_RELEASE=$input_hood-beta-$input_version GLUON_OUTPUTDIR=output/beta
- make -j4 GLUON_BRANCH=experimental GLUON_RELEASE=$input_hood-exp-$input_version GLUON_OUTPUTDIR=output/experimental
2019-08-18 21:17:12 +00:00
environment:
2019-10-09 15:37:39 +00:00
input_hood: multi
2019-09-29 09:37:13 +00:00
input_version: v2019.1
2019-08-18 21:17:12 +00:00
GLUON_SITEDIR: /drone/src/site
GLUON_TARGET: ar71xx-tiny
FORCE_UNSAFE_CONFIGURE: 1
2019-10-09 15:37:39 +00:00
#
#- name: build-ar71xx-nand
# image: hoffmannhosting/gluon-builder
# commands:
# - cd gluon
# - make -j4 GLUON_BRANCH=stable GLUON_RELEASE=$input_hood-stable-$input_version GLUON_OUTPUTDIR=output/stable
# - make -j4 GLUON_BRANCH=beta GLUON_RELEASE=$input_hood-beta-$input_version GLUON_OUTPUTDIR=output/beta
# - make -j4 GLUON_BRANCH=experimental GLUON_RELEASE=$input_hood-exp-$input_version GLUON_OUTPUTDIR=output/experimental
# environment:
# input_hood: multi
# input_version: v2019.1
# GLUON_SITEDIR: /drone/src/site
# GLUON_TARGET: ar71xx-nand
# FORCE_UNSAFE_CONFIGURE: 1
#
#- name: build-brcm2708-bcm2708
# image: hoffmannhosting/gluon-builder
# commands:
# - cd gluon
# - make -j4 GLUON_BRANCH=stable GLUON_RELEASE=$input_hood-stable-$input_version GLUON_OUTPUTDIR=output/stable
# - make -j4 GLUON_BRANCH=beta GLUON_RELEASE=$input_hood-beta-$input_version GLUON_OUTPUTDIR=output/beta
# - make -j4 GLUON_BRANCH=experimental GLUON_RELEASE=$input_hood-exp-$input_version GLUON_OUTPUTDIR=output/experimental
# environment:
# input_hood: multi
# input_version: v2019.1
# GLUON_SITEDIR: /drone/src/site
# GLUON_TARGET: brcm2708-bcm2708
# FORCE_UNSAFE_CONFIGURE: 1
#
#- name: build-brcm2708-bcm2709
# image: hoffmannhosting/gluon-builder
# commands:
# - cd gluon
# - make -j4 GLUON_BRANCH=stable GLUON_RELEASE=$input_hood-stable-$input_version GLUON_OUTPUTDIR=output/stable
# - make -j4 GLUON_BRANCH=beta GLUON_RELEASE=$input_hood-beta-$input_version GLUON_OUTPUTDIR=output/beta
# - make -j4 GLUON_BRANCH=experimental GLUON_RELEASE=$input_hood-exp-$input_version GLUON_OUTPUTDIR=output/experimental
# environment:
# input_hood: multi
# input_version: v2019.1
# GLUON_SITEDIR: /drone/src/site
# GLUON_TARGET: brcm2708-bcm2709
# FORCE_UNSAFE_CONFIGURE: 1
#
#- name: build-mpc85xx-generic
# image: hoffmannhosting/gluon-builder
# commands:
# - cd gluon
# - make -j4 GLUON_BRANCH=stable GLUON_RELEASE=$input_hood-stable-$input_version GLUON_OUTPUTDIR=output/stable
# - make -j4 GLUON_BRANCH=beta GLUON_RELEASE=$input_hood-beta-$input_version GLUON_OUTPUTDIR=output/beta
# - make -j4 GLUON_BRANCH=experimental GLUON_RELEASE=$input_hood-exp-$input_version GLUON_OUTPUTDIR=output/experimental
# environment:
# input_hood: multi
# input_version: v2019.1
# GLUON_SITEDIR: /drone/src/site
# GLUON_TARGET: mpc85xx-generic
# FORCE_UNSAFE_CONFIGURE: 1
#
#- name: build-mpc85xx-p1020
# image: hoffmannhosting/gluon-builder
# commands:
# - cd gluon
# - make -j4 GLUON_BRANCH=stable GLUON_RELEASE=$input_hood-stable-$input_version GLUON_OUTPUTDIR=output/stable
# - make -j4 GLUON_BRANCH=beta GLUON_RELEASE=$input_hood-beta-$input_version GLUON_OUTPUTDIR=output/beta
# - make -j4 GLUON_BRANCH=experimental GLUON_RELEASE=$input_hood-exp-$input_version GLUON_OUTPUTDIR=output/experimental
# environment:
# input_hood: multi
# input_version: v2019.1
# GLUON_SITEDIR: /drone/src/site
# GLUON_TARGET: mpc85xx-p1020
# FORCE_UNSAFE_CONFIGURE: 1
#
#- name: build-x86-generic
# image: hoffmannhosting/gluon-builder
# commands:
# - cd gluon
# - make -j4 GLUON_BRANCH=stable GLUON_RELEASE=$input_hood-stable-$input_version GLUON_OUTPUTDIR=output/stable
# - make -j4 GLUON_BRANCH=beta GLUON_RELEASE=$input_hood-beta-$input_version GLUON_OUTPUTDIR=output/beta
# - make -j4 GLUON_BRANCH=experimental GLUON_RELEASE=$input_hood-exp-$input_version GLUON_OUTPUTDIR=output/experimental
# environment:
# input_hood: multi
# input_version: v2019.1
# GLUON_SITEDIR: /drone/src/site
# GLUON_TARGET: x86-generic
# FORCE_UNSAFE_CONFIGURE: 1
#
#- name: build-x86-geode
# image: hoffmannhosting/gluon-builder
# commands:
# - cd gluon
# - make -j4 GLUON_BRANCH=stable GLUON_RELEASE=$input_hood-stable-$input_version GLUON_OUTPUTDIR=output/stable
# - make -j4 GLUON_BRANCH=beta GLUON_RELEASE=$input_hood-beta-$input_version GLUON_OUTPUTDIR=output/beta
# - make -j4 GLUON_BRANCH=experimental GLUON_RELEASE=$input_hood-exp-$input_version GLUON_OUTPUTDIR=output/experimental
# environment:
# input_hood: multi
# input_version: v2019.1
# GLUON_SITEDIR: /drone/src/site
# GLUON_TARGET: x86-geode
# FORCE_UNSAFE_CONFIGURE: 1
#
#- name: build-x86-64
# image: hoffmannhosting/gluon-builder
# commands:
# - cd gluon
# - make -j4 GLUON_BRANCH=stable GLUON_RELEASE=$input_hood-stable-$input_version GLUON_OUTPUTDIR=output/stable
# - make -j4 GLUON_BRANCH=beta GLUON_RELEASE=$input_hood-beta-$input_version GLUON_OUTPUTDIR=output/beta
# - make -j4 GLUON_BRANCH=experimental GLUON_RELEASE=$input_hood-exp-$input_version GLUON_OUTPUTDIR=output/experimental
# environment:
# input_hood: multi
# input_version: v2019.1
# GLUON_SITEDIR: /drone/src/site
# GLUON_TARGET: x86-64
# FORCE_UNSAFE_CONFIGURE: 1
#
#- name: build-ipq40xx
# image: hoffmannhosting/gluon-builder
# commands:
# - cd gluon
# - make -j4 GLUON_BRANCH=stable GLUON_RELEASE=$input_hood-stable-$input_version GLUON_OUTPUTDIR=output/stable
# - make -j4 GLUON_BRANCH=beta GLUON_RELEASE=$input_hood-beta-$input_version GLUON_OUTPUTDIR=output/beta
# - make -j4 GLUON_BRANCH=experimental GLUON_RELEASE=$input_hood-exp-$input_version GLUON_OUTPUTDIR=output/experimental
# environment:
# input_hood: multi
# input_version: v2019.1
# GLUON_SITEDIR: /drone/src/site
# GLUON_TARGET: ipq40xx
# FORCE_UNSAFE_CONFIGURE: 1
#
#- name: build-ramips-mt7620
# image: hoffmannhosting/gluon-builder
# commands:
# - cd gluon
# - make -j4 GLUON_BRANCH=stable GLUON_RELEASE=$input_hood-stable-$input_version GLUON_OUTPUTDIR=output/stable
# - make -j4 GLUON_BRANCH=beta GLUON_RELEASE=$input_hood-beta-$input_version GLUON_OUTPUTDIR=output/beta
# - make -j4 GLUON_BRANCH=experimental GLUON_RELEASE=$input_hood-exp-$input_version GLUON_OUTPUTDIR=output/experimental
# environment:
# input_hood: multi
# input_version: v2019.1
# GLUON_SITEDIR: /drone/src/site
# GLUON_TARGET: ramips-mt7620
# FORCE_UNSAFE_CONFIGURE: 1
#
#- name: build-ramips-mt7621
# image: hoffmannhosting/gluon-builder
# commands:
# - cd gluon
# - make -j4 GLUON_BRANCH=stable GLUON_RELEASE=$input_hood-stable-$input_version GLUON_OUTPUTDIR=output/stable
# - make -j4 GLUON_BRANCH=beta GLUON_RELEASE=$input_hood-beta-$input_version GLUON_OUTPUTDIR=output/beta
# - make -j4 GLUON_BRANCH=experimental GLUON_RELEASE=$input_hood-exp-$input_version GLUON_OUTPUTDIR=output/experimental
# environment:
# input_hood: multi
# input_version: v2019.1
# GLUON_SITEDIR: /drone/src/site
# GLUON_TARGET: ramips-mt7621
# FORCE_UNSAFE_CONFIGURE: 1
#
#- name: build-ramips-mt76x8
# image: hoffmannhosting/gluon-builder
# commands:
# - cd gluon
# - make -j4 GLUON_BRANCH=stable GLUON_RELEASE=$input_hood-stable-$input_version GLUON_OUTPUTDIR=output/stable
# - make -j4 GLUON_BRANCH=beta GLUON_RELEASE=$input_hood-beta-$input_version GLUON_OUTPUTDIR=output/beta
# - make -j4 GLUON_BRANCH=experimental GLUON_RELEASE=$input_hood-exp-$input_version GLUON_OUTPUTDIR=output/experimental
# environment:
# input_hood: multi
# input_version: v2019.1
# GLUON_SITEDIR: /drone/src/site
# GLUON_TARGET: ramips-mt76x8
# FORCE_UNSAFE_CONFIGURE: 1
#
#- name: build-ramips-rt305x
# image: hoffmannhosting/gluon-builder
# commands:
# - cd gluon
# - make -j4 GLUON_BRANCH=stable GLUON_RELEASE=$input_hood-stable-$input_version GLUON_OUTPUTDIR=output/stable
# - make -j4 GLUON_BRANCH=beta GLUON_RELEASE=$input_hood-beta-$input_version GLUON_OUTPUTDIR=output/beta
# - make -j4 GLUON_BRANCH=experimental GLUON_RELEASE=$input_hood-exp-$input_version GLUON_OUTPUTDIR=output/experimental
# environment:
# input_hood: multi
# input_version: v2019.1
# GLUON_SITEDIR: /drone/src/site
# GLUON_TARGET: ramips-rt305x
# FORCE_UNSAFE_CONFIGURE: 1
2019-08-18 21:17:12 +00:00
2019-08-17 10:38:59 +00:00
- name: make manifest
image: hoffmannhosting/gluon-builder
commands:
2019-08-17 11:13:04 +00:00
- cd gluon
2019-09-14 08:56:34 +00:00
- make manifest GLUON_BRANCH=stable GLUON_OUTPUTDIR=output/stable GLUON_RELEASE=$input_hood-stable-$input_version
- make manifest GLUON_BRANCH=beta GLUON_OUTPUTDIR=output/beta GLUON_RELEASE=$input_hood-beta-$input_version
2019-09-15 20:10:08 +00:00
- make manifest GLUON_BRANCH=experimental GLUON_OUTPUTDIR=output/experimental GLUON_RELEASE=$input_hood-exp-$input_version
2019-08-17 10:38:59 +00:00
environment:
2019-10-09 15:37:39 +00:00
input_hood: multi
2019-09-29 09:37:13 +00:00
input_version: v2019.1
2019-08-17 11:51:43 +00:00
GLUON_SITEDIR: /drone/src/site
2019-08-17 11:54:30 +00:00
FORCE_UNSAFE_CONFIGURE: 1
2019-08-18 21:17:12 +00:00
- name: backup-old-firmware
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
#- rm -rf /srv/fwuploads/troisdorf/multi/*
- 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
- name: upload stable
image: appleboy/drone-scp
settings:
host: 46.4.138.183
user: fwupload
key:
from_secret: ssh-update
2019-08-20 18:24:48 +00:00
strip_components: 6
2019-10-09 15:37:39 +00:00
target: /srv/fwuploads/troisdorf/multi/stable
2019-08-18 21:17:12 +00:00
source: /drone/src/gluon/output/stable/images/*
- name: upload beta
image: appleboy/drone-scp
settings:
host: 46.4.138.183
user: fwupload
key:
from_secret: ssh-update
2019-08-20 18:24:48 +00:00
strip_components: 6
2019-10-09 15:37:39 +00:00
target: /srv/fwuploads/troisdorf/multi/beta
2019-08-18 21:17:12 +00:00
source: /drone/src/gluon/output/beta/images/*
2019-08-18 21:19:32 +00:00
- name: upload experimental
2019-08-18 21:17:12 +00:00
image: appleboy/drone-scp
settings:
host: 46.4.138.183
user: fwupload
key:
from_secret: ssh-update
2019-08-19 18:24:26 +00:00
strip_components: 6
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