From d7458d902ea8eba6194de29c18060bef2c4eec46 Mon Sep 17 00:00:00 2001 From: Nils Jakobi Date: Sat, 2 Jan 2021 23:20:26 +0100 Subject: [PATCH] this should do, maybe --- .drone.jsonnet | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index c9aca17..ee2c8a2 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -1,9 +1,7 @@ local pipeline(arch, os) = { - kind: "pipeline", - type: "docker", - name: "build go", + name: "build" + os + "/" + arch, steps: [{ - name: "build " + os + "/" + arch, + name: "compile " + os + "/" + arch, image: "golang:1.15.6-alpine3.12", environment: { "GOOS": os, @@ -11,7 +9,7 @@ local pipeline(arch, os) = { "CGO_ENABLED": "0", }, commands: [ - 'go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/' + os + "/" + arch + "/ubnt-freifunk-map-api .", + 'go build -ldflags "-s -w -X main.version=${DRONE_TAG##v}" -trimpath -o release/' + os + "/" + arch + "/ubnt-freifunk-map-api .", "tar -cvzf release/ubnt-freifunk-map-api_"+ os + "/" + arch + ".tar.gz -C release/" + os + "/" + arch + " ubnt-freifunk-map-api" ], },