Compare commits

...

12 Commits

Author SHA1 Message Date
742a904f95
Merge branch 'testing'
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-28 22:53:35 +02:00
97097adf58
syntax guessing
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
continuous-integration/drone/pr Build is failing
2023-04-28 22:46:08 +02:00
9cf5834e53
syntax 2023-04-28 22:45:07 +02:00
812c44e2fe
added tag latest 2023-04-28 22:41:03 +02:00
968f3b3f57
more foo
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2023-04-28 22:37:31 +02:00
26bad6c9a8
removed wrong comma 2023-04-28 22:34:55 +02:00
3cf3cfc906
deleted unused file manifest 2023-04-28 22:31:02 +02:00
c1554cbbc9
removed unnecessary pipeline arguments, removed manifest 2023-04-28 22:30:19 +02:00
7225bf5146
changed repo name back
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing
2023-04-28 22:22:55 +02:00
61ace83ebd
testing more stuffz
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing
2023-04-28 22:09:25 +02:00
3f27d527e0
typo
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing
2023-04-28 21:57:24 +02:00
d9d35a1270
added testing branch 2023-04-28 21:53:05 +02:00
3 changed files with 9 additions and 87 deletions

View File

@ -31,15 +31,15 @@ local pipeline(os, arch) = {
}, },
}, },
{ {
name: "upload to docker hub " + os + "/" + arch, name: "upload to gitea container registry",
image: "plugins/docker:" + os + "-" + arch, image: "plugins/docker:latest",
settings: { settings: {
repo: "git.freifunk-rhein-sieg.net/freifunk-froisdorf/ubnt-freifunk-map-api", repo: "git.freifunk-rhein-sieg.net/freifunk-troisdorf/ubnt-freifunk-map-api",
registry: "git.freifunk-rhein-sieg.net", registry: "git.freifunk-rhein-sieg.net",
username: { "from_secret": "docker_username" }, username: { "from_secret": "docker_username" },
password: { "from_secret": "docker_password" }, password: { "from_secret": "docker_password" },
tags: ["latest"],
auto_tag: true, auto_tag: true,
auto_tag_suffix: os + "-" + arch
}, },
when: { when: {
event: "tag" event: "tag"
@ -48,67 +48,6 @@ local pipeline(os, arch) = {
], ],
}; };
local manifest() = {
kind: "pipeline",
type: "docker",
name: "manifest",
depends_on: ["linux/amd64"],
when: {
event: "tag"
},
steps: [
{
name: "publish",
image: "plugins/manifest",
settings: {
auto_tag: true,
ignore_missing: true,
spec: "manifest.yml",
username: { "from_secret": "docker_username" },
password: { "from_secret": "docker_password" },
},
when: {
event: "tag"
},
},
],
};
local validateJSON() = {
kind: "pipeline",
type: "docker",
name: "validate json",
when: {
event: "push"
},
steps: [
{
name: "validate ucDevices",
image: "fftdf/docker-json-validate",
commands: [
"jsonlint ucDevices.json"
],
when: {
event: "push"
},
},
{
name: "validate Devices",
image: "fftdf/docker-json-validate",
commands: [
"jsonlint devices.json",
],
when: {
event: "push"
},
},
],
};
[ [
pipeline("linux", "amd64"), pipeline("linux", "amd64")
// pipeline("linux", "arm64"), ]
manifest()
]

View File

@ -1,3 +1,5 @@
# TESTING BRANCH!!!!
# Freifunk Meshviewer Unifi Access Points und Richtfunkstrecken import # Freifunk Meshviewer Unifi Access Points und Richtfunkstrecken import
Dieses tool Importiert Nodes für die Freifunk Map aus den APIs UNMS (Richtfunk) & Unifi (Access Points) Dieses tool Importiert Nodes für die Freifunk Map aus den APIs UNMS (Richtfunk) & Unifi (Access Points)
@ -63,4 +65,4 @@ Es gibt 3 Module die Ein/Ausgeschatet werden können:
* Unifi * Unifi
* Meshviewer * Meshviewer
Die Funktion Meshviewer importiert die vorhandenen meshviewer.json und manipuliert dort die Userzahlen. Sobald ein Access Point einen Node aus einer Meshviwer.json als "gateway_nexthop" eingetragen hat, werden die Clients an dem verbundenen Access Point und nicht mehr am Offloader angezeigt. Die Funktion Meshviewer importiert die vorhandenen meshviewer.json und manipuliert dort die Userzahlen. Sobald ein Access Point einen Node aus einer Meshviwer.json als "gateway_nexthop" eingetragen hat, werden die Clients an dem verbundenen Access Point und nicht mehr am Offloader angezeigt.

View File

@ -1,19 +0,0 @@
image: fftdf/ffmap-ubnt-api:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}}
tags:
- "latest"
{{#each build.tags}}
- {{this}}
{{/each}}
{{/if}}
manifests:
-
image: git.freifunk-rhein-sieg.net/freifunk-froisdorf/ubnt-freifunk-map-api:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
platform:
architecture: amd64
os: linux
# -
# image: fftdf/ffmap-ubnt-api:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
# platform:
# architecture: arm64
# os: linux