This commit is contained in:
parent
91eec1891c
commit
fe65d68c5c
@ -11,8 +11,6 @@ variables:
|
|||||||
- FORCE_UNSAFE_CONFIGURE=1
|
- FORCE_UNSAFE_CONFIGURE=1
|
||||||
- GLUON_TARGET=${TARGET}
|
- GLUON_TARGET=${TARGET}
|
||||||
- GLUON_DEPRECATED=1
|
- GLUON_DEPRECATED=1
|
||||||
when:
|
|
||||||
event: tag
|
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
base: /build
|
base: /build
|
||||||
@ -39,17 +37,14 @@ pipeline:
|
|||||||
<<: *default
|
<<: *default
|
||||||
commands:
|
commands:
|
||||||
- cd gluon
|
- cd gluon
|
||||||
- if [ -z $CI_COMMIT_TAG ]; then export input_version=dev; fi
|
- make -j$(nproc) GLUON_AUTOUPDATER_BRANCH=${BRANCH} GLUON_AUTOUPDATER_ENABLED=1 GLUON_RELEASE=$input_version-${BRANCH} GLUON_OUTPUTDIR=output/${BRANCH}
|
||||||
- echo $input_version
|
|
||||||
- echo $CI_COMMIT_BRANCH
|
|
||||||
- make -j$(nproc) GLUON_AUTOUPDATER_BRANCH=${CI_COMMIT_BRANCH} GLUON_AUTOUPDATER_ENABLED=1 GLUON_RELEASE=$input_version-${CI_COMMIT_BRANCH} GLUON_OUTPUTDIR=output/${CI_COMMIT_BRANCH}
|
|
||||||
|
|
||||||
list_images:
|
list_images:
|
||||||
<<: *default
|
<<: *default
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p gluon/output/${CI_COMMIT_BRANCH}/images/factory
|
- mkdir -p gluon/output/${BRANCH}/images/factory
|
||||||
- echo "${TARGET}" > gluon/output/${CI_COMMIT_BRANCH}/images/factory/${TARGET}
|
- echo "${TARGET}" > gluon/output/${BRANCH}/images/factory/${TARGET}
|
||||||
- ls -alh gluon/output/${CI_COMMIT_BRANCH}/images/factory
|
- ls -alh gluon/output/${BRANCH}/images/factory
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
@ -59,8 +54,8 @@ pipeline:
|
|||||||
key:
|
key:
|
||||||
from_secret: ssh-key
|
from_secret: ssh-key
|
||||||
strip_components: 2
|
strip_components: 2
|
||||||
target: /srv/fwuploads-testing/troisdorf/multi/incoming/
|
target: /srv/fwuploads-testing/troisdorf/multi/next/
|
||||||
source: gluon/output/${CI_COMMIT_BRANCH}/*
|
source: gluon/output/${BRANCH}/*
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
---
|
|
||||||
platform: linux/arm64
|
|
||||||
|
|
||||||
skip_clone: true
|
|
||||||
|
|
||||||
workspace:
|
|
||||||
base: /build
|
|
||||||
|
|
||||||
pipeline:
|
|
||||||
cleanup:
|
|
||||||
image: appleboy/drone-ssh
|
|
||||||
settings:
|
|
||||||
host: 46.4.138.183
|
|
||||||
username: fwupload
|
|
||||||
key:
|
|
||||||
from_secret: ssh-key
|
|
||||||
port: 22
|
|
||||||
command_timeout: 120m
|
|
||||||
script:
|
|
||||||
- ls -alh /srv/fwuploads-testing/troisdorf/multi/incoming/${CI_COMMIT_BRANCH}
|
|
||||||
- rm -rf /srv/fwuploads-testing/troisdorf/multi/${CI_COMMIT_BRANCH}/
|
|
||||||
- mkdir /srv/fwuploads-testing/troisdorf/multi/${CI_COMMIT_BRANCH}/
|
|
||||||
- mv /srv/fwuploads-testing/troisdorf/multi/incoming/${CI_COMMIT_BRANCH}/* /srv/fwuploads-testing/troisdorf/multi/${CI_COMMIT_BRANCH}/
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- build
|
|
@ -13,6 +13,7 @@ variables:
|
|||||||
- GLUON_DEPRECATED=1
|
- GLUON_DEPRECATED=1
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
|
branch: next
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
base: /build
|
base: /build
|
||||||
@ -24,6 +25,7 @@ clone:
|
|||||||
recursive: true
|
recursive: true
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
|
branch: next
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
make_update:
|
make_update:
|
||||||
@ -41,10 +43,7 @@ pipeline:
|
|||||||
<<: *default
|
<<: *default
|
||||||
commands:
|
commands:
|
||||||
- cd gluon
|
- cd gluon
|
||||||
- if [ -z $CI_COMMIT_TAG ]; then export input_version=dev; fi
|
- make -j$(nproc) GLUON_AUTOUPDATER_BRANCH=${CI_COMMIT_BRANCH} GLUON_AUTOUPDATER_ENABLED=1 GLUON_RELEASE=$input_version-${CI_COMMIT_BRANCH} GLUON_OUTPUTDIR=output/next
|
||||||
- echo $input_version
|
|
||||||
- echo $CI_COMMIT_BRANCH
|
|
||||||
- make -j$(nproc) GLUON_AUTOUPDATER_BRANCH=${CI_COMMIT_BRANCH} GLUON_AUTOUPDATER_ENABLED=1 GLUON_RELEASE=$input_version-${CI_COMMIT_BRANCH} GLUON_OUTPUTDIR=output/${CI_COMMIT_BRANCH}
|
|
||||||
|
|
||||||
list_images:
|
list_images:
|
||||||
<<: *default
|
<<: *default
|
||||||
@ -53,6 +52,17 @@ pipeline:
|
|||||||
- echo "${TARGET}" > gluon/output/${CI_COMMIT_BRANCH}/images/factory/${TARGET}
|
- echo "${TARGET}" > gluon/output/${CI_COMMIT_BRANCH}/images/factory/${TARGET}
|
||||||
- ls -alh gluon/output/${CI_COMMIT_BRANCH}/images/factory
|
- ls -alh gluon/output/${CI_COMMIT_BRANCH}/images/factory
|
||||||
|
|
||||||
|
publish:
|
||||||
|
image: woodpeckerci/plugin-gitea-release
|
||||||
|
settings:
|
||||||
|
base_url: https://git.freifunk-rhein-sieg.net
|
||||||
|
files:
|
||||||
|
- gluon/output/next/*
|
||||||
|
api_key:
|
||||||
|
from_secret: api_key
|
||||||
|
target: next
|
||||||
|
prerelease: true
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
TARGET:
|
TARGET:
|
||||||
- ath79-generic
|
- ramips-mt7621
|
@ -14,7 +14,10 @@ pipeline:
|
|||||||
port: 22
|
port: 22
|
||||||
command_timeout: 120m
|
command_timeout: 120m
|
||||||
script:
|
script:
|
||||||
- rm -rf /srv/fwuploads-testing/troisdorf/multi/incoming/${CI_COMMIT_BRANCH}
|
- rm -rf /srv/fwuploads-testing/troisdorf/multi/next/*
|
||||||
- mkdir -p /srv/fwuploads-testing/troisdorf/multi/incoming/${CI_COMMIT_BRANCH}
|
- mkdir -p /srv/fwuploads-testing/troisdorf/multi/next/stable
|
||||||
|
- mkdir -p /srv/fwuploads-testing/troisdorf/multi/next/beta
|
||||||
|
- mkdir -p /srv/fwuploads-testing/troisdorf/multi/next/experimental
|
||||||
when:
|
when:
|
||||||
|
branch: stable
|
||||||
event: tag
|
event: tag
|
||||||
|
Loading…
Reference in New Issue
Block a user