From 8610b3c044698981e37b8cd7d7ee968056de2e6a Mon Sep 17 00:00:00 2001 From: Stefan Date: Sun, 21 May 2023 21:15:54 +0200 Subject: [PATCH] Build in Gitea --- .drone.yml | 12 ------------ .woodpecker.yml | 22 ++++++++++++++++++++++ nodePoller.sh | 9 --------- 3 files changed, 22 insertions(+), 21 deletions(-) delete mode 100644 .drone.yml create mode 100644 .woodpecker.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index a8cb5eb..0000000 --- a/.drone.yml +++ /dev/null @@ -1,12 +0,0 @@ -kind: pipeline -name: meshviewer-cron build - -steps: -- name: docker - image: plugins/docker - settings: - repo: fftdf/meshviewer-cron - username: - from_secret: docker_username - password: - from_secret: docker_password diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..1e6ab56 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,22 @@ +pipeline: + docker-build: + image: woodpeckerci/plugin-docker-buildx + settings: + dry_run: true + repo: git.freifunk-rhein-sieg.net/freifunk-troisdorf/docker-meshviewer-cron + registry: https://git.freifunk-rhein-sieg.net + auto_tag: true + when: + event: commit + + docker-push: + image: woodpeckerci/plugin-docker-buildx + settings: + repo: git.freifunk-rhein-sieg.net/freifunk-troisdorf/docker-meshviewer-cron + registry: https://git.freifunk-rhein-sieg.net + auto_tag: true + username: api_user + password: + from_secret: gitpw + when: + event: tag \ No newline at end of file diff --git a/nodePoller.sh b/nodePoller.sh index 31b281d..0183a27 100755 --- a/nodePoller.sh +++ b/nodePoller.sh @@ -1,12 +1,3 @@ #!/bin/sh - -#for i in 4 5 6 -#do -# for f in meshviewer #graph nodelist nodes -# do -# mkdir -p /opt/data/tdf$i/ -# curl http://$i.fftdf.de/$f.json -o /opt/data/tdf$i/$f.json || sed -i -e 's/"is_online":true/"is_online":false/g' /opt/data/tdf$i/$f.json -# done -#done mkdir -p /opt/data/api/ curl https://ubnt-api.freifunk-rhein-sieg.net/meshviewer.json -o /opt/data/api/meshviewer.json