testing woodpecker
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Nils Stinnesbeck 2023-05-19 16:37:36 +02:00
parent 4685a290ce
commit cab302cb28
Signed by: nils
GPG Key ID: C52E07422A136076

View File

@ -1,38 +1,3 @@
global-variables:
env: &env
image: hoffmannhosting/gluon-builder
environment:
input_version: v2020.2.2
GLUON_SITEDIR: /drone/src/site
FORCE_UNSAFE_CONFIGURE: 1
gluon: &gluon
<<: *env
commands:
- cd gluon
- make -j6 GLUON_BRANCH=stable GLUON_RELEASE=$input_version-stable GLUON_OUTPUTDIR=output/stable
- 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
image: appleboy/drone-scp
settings:
host: 46.4.138.183
user: fwupload
key:
from_secret: ssh-update
strip_components: 6
when:
branch: multidomain
patch: &patch
<<: *env
commands:
- cd gluon/openwrt/package
- grep -rl +iw kernel/mac80211/Makefile | xargs sed -i s/+iw/+iw-full/g
- grep -r iw-full *
clone:
git:
image: woodpeckerci/plugin-git
@ -45,59 +10,3 @@ pipeline:
commands:
- cd site
- git checkout multidomain
make_update:
<<: *env
commands:
- cd gluon
- make update
environment:
GLUON_TARGET: ar71xx-generic
patch_iw:
<<: *patch
make_manifest:
<<: *env
commands:
- cd gluon
- 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
#steps: &steps
#- 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:
# #- ./rsync-backup-multi.sh
# - rm -rf /srv/fwuploads/troisdorf/multi/stable
# - rm -rf /srv/fwuploads/troisdorf/multi/beta
# - mkdir /srv/fwuploads/troisdorf/multi/stable
# - mkdir /srv/fwuploads/troisdorf/multi/beta
# when:
# branch: multidomain
#- name: upload stable
# <<: *upload
# settings:
# target: /srv/fwuploads/troisdorf/multi/stable
# source: /drone/src/gluon/output/stable/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/*