Merge branch 'testing'
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
commit
742a904f95
@ -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()
|
|
||||||
]
|
|
||||||
|
@ -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.
|
||||||
|
19
manifest.yml
19
manifest.yml
@ -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
|
|
Loading…
Reference in New Issue
Block a user