From c1554cbbc91cb6485fbda492b37d83182951f089 Mon Sep 17 00:00:00 2001 From: Nils Stinnesbeck Date: Fri, 28 Apr 2023 22:30:19 +0200 Subject: [PATCH] removed unnecessary pipeline arguments, removed manifest --- .drone.jsonnet | 65 ++------------------------------------------------ 1 file changed, 2 insertions(+), 63 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 59bebfd..00b4a73 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -31,8 +31,8 @@ local pipeline(os, arch) = { }, }, { - name: "upload to docker hub " + os + "/" + arch, - image: "plugins/docker:" + os + "-" + arch, + name: "upload to gitea container registry" + image: "plugins/docker:", settings: { repo: "git.freifunk-rhein-sieg.net/freifunk-troisdorf/ubnt-freifunk-map-api", registry: "git.freifunk-rhein-sieg.net", @@ -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", "arm64"), - manifest() ]