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 settings: recursive: true pipeline: site-multidomain: image: docker:git 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/*