Compare commits

...

12 Commits

Author SHA1 Message Date
0a261b2857
test the test
Some checks failed
ci/woodpecker/push/test Pipeline failed
2023-05-25 14:27:47 +02:00
a0c717c8d7
testing conditions 2023-05-25 14:22:05 +02:00
823e24a085
tag
All checks were successful
ci/woodpecker/push/prepare Pipeline was successful
2023-05-25 14:20:47 +02:00
e0baba2058
tag2
Some checks failed
ci/woodpecker/push/prepare Pipeline is pending
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/cleanup unknown status
2023-05-25 14:19:31 +02:00
9686ff002a
teg test
Some checks failed
ci/woodpecker/push/prepare Pipeline is pending
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/push/cleanup unknown status
2023-05-25 14:17:24 +02:00
1481aac2fe
testing events
Some checks failed
ci/woodpecker/push/prepare Pipeline is pending
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/push/cleanup unknown status
2023-05-25 14:14:31 +02:00
ca210989b0
bugfix
Some checks failed
ci/woodpecker/push/prepare Pipeline is pending
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/push/cleanup unknown status
2023-05-25 14:02:57 +02:00
e608030e0d
if bugifx2
Some checks failed
ci/woodpecker/push/prepare Pipeline is pending
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/push/cleanup unknown status
2023-05-25 13:49:09 +02:00
6cb7febc1d
if bugfix
Some checks failed
ci/woodpecker/push/prepare Pipeline was successful
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/push/cleanup unknown status
2023-05-25 13:44:32 +02:00
325da5740d
Added dev variable
Some checks failed
ci/woodpecker/push/prepare Pipeline is pending
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/push/cleanup unknown status
2023-05-25 13:34:45 +02:00
9eac90455a
test build
Some checks failed
ci/woodpecker/push/prepare Pipeline is pending
ci/woodpecker/push/build unknown status
ci/woodpecker/push/cleanup unknown status
2023-05-25 13:21:22 +02:00
7a42fa88e9
added variable for branch 2023-05-25 13:19:33 +02:00
5 changed files with 86 additions and 21 deletions

View File

@ -6,11 +6,13 @@ variables:
image: "git.freifunk-rhein-sieg.net/freifunk-troisdorf/docker-gluon-build:latest"
pull: true
environment:
- input_version=v2022.1.4
- input_version=${CI_COMMIT_TAG}
- GLUON_SITEDIR=..
- FORCE_UNSAFE_CONFIGURE=1
- GLUON_TARGET=${TARGET}
- GLUON_DEPRECATED=1
when:
event: tag
workspace:
base: /build
@ -37,14 +39,17 @@ pipeline:
<<: *default
commands:
- cd gluon
- make -j$(nproc) GLUON_AUTOUPDATER_BRANCH=stable GLUON_AUTOUPDATER_ENABLED=1 GLUON_RELEASE=$input_version-stable GLUON_OUTPUTDIR=output/stable
- if [ -z $CI_COMMIT_TAG ]; then export input_version=dev; fi
- 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:
<<: *default
commands:
- mkdir -p gluon/output/stable/images/factory
- echo "${TARGET}" > gluon/output/stable/images/factory/${TARGET}
- ls -alh gluon/output/stable/images/factory
- mkdir -p gluon/output/${CI_COMMIT_BRANCH}/images/factory
- echo "${TARGET}" > gluon/output/${CI_COMMIT_BRANCH}/images/factory/${TARGET}
- ls -alh gluon/output/${CI_COMMIT_BRANCH}/images/factory
upload:
image: appleboy/drone-scp
@ -55,7 +60,9 @@ pipeline:
from_secret: ssh-key
strip_components: 2
target: /srv/fwuploads-testing/troisdorf/multi/incoming/
source: gluon/output/stable/*
source: gluon/output/${CI_COMMIT_BRANCH}/*
when:
event: tag
matrix:
TARGET:

View File

@ -17,10 +17,10 @@ pipeline:
port: 22
command_timeout: 120m
script:
- ls -alh /srv/fwuploads-testing/troisdorf/multi/incoming/stable
- rm -rf /srv/fwuploads-testing/troisdorf/multi/stable/
- mkdir /srv/fwuploads-testing/troisdorf/multi/stable/
- mv /srv/fwuploads-testing/troisdorf/multi/incoming/stable/* /srv/fwuploads-testing/troisdorf/multi/stable/
- 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

View File

@ -14,5 +14,7 @@ pipeline:
port: 22
command_timeout: 120m
script:
- rm -rf /srv/fwuploads-testing/troisdorf/multi/incoming/stable
- mkdir -p /srv/fwuploads-testing/troisdorf/multi/incoming/stable
- rm -rf /srv/fwuploads-testing/troisdorf/multi/incoming/${CI_COMMIT_BRANCH}
- mkdir -p /srv/fwuploads-testing/troisdorf/multi/incoming/${CI_COMMIT_BRANCH}
when:
event: tag

58
.woodpecker/test.yml Normal file
View File

@ -0,0 +1,58 @@
---
platform: linux/arm64
variables:
- &default
image: "git.freifunk-rhein-sieg.net/freifunk-troisdorf/docker-gluon-build:latest"
pull: true
environment:
- input_version=${CI_COMMIT_TAG}
- GLUON_SITEDIR=..
- FORCE_UNSAFE_CONFIGURE=1
- GLUON_TARGET=${TARGET}
- GLUON_DEPRECATED=1
when:
event: push
workspace:
base: /build
clone:
git:
image: woodpeckerci/plugin-git
settings:
recursive: true
when:
event: push
pipeline:
make_update:
<<: *default
commands:
- cd gluon
- make update
patch-iw-to-iw-full:
<<: *default
commands:
- sed -i 's/+iw /+iw-full /g' gluon/openwrt/package/kernel/mac80211/Makefile
build:
<<: *default
commands:
- cd gluon
- if [ -z $CI_COMMIT_TAG ]; then export input_version=dev; fi
- 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:
<<: *default
commands:
- mkdir -p gluon/output/${CI_COMMIT_BRANCH}/images/factory
- echo "${TARGET}" > gluon/output/${CI_COMMIT_BRANCH}/images/factory/${TARGET}
- ls -alh gluon/output/${CI_COMMIT_BRANCH}/images/factory
matrix:
TARGET:
- ath79-generic

View File

@ -1,3 +1 @@
====
repo for site configuration