From 384cd4f483e3abf157cfafacd575fba432bdd013 Mon Sep 17 00:00:00 2001 From: Nils Jakobi Date: Sat, 2 Jan 2021 23:16:14 +0100 Subject: [PATCH] this should do --- .drone.jsonnet | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 07dea26..c9aca17 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -1,7 +1,9 @@ local pipeline(arch, os) = { kind: "pipeline", - name: "build", + type: "docker", + name: "build go", steps: [{ + name: "build " + os + "/" + arch, image: "golang:1.15.6-alpine3.12", environment: { "GOOS": os, @@ -9,8 +11,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 -o release/' + os + "/" + arch + "/ubnt-freifunk-map-api .", + 'go build -ldflags "-X main.version=${DRONE_TAG##v}" -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" ], }, @@ -18,10 +19,9 @@ local pipeline(arch, os) = { }; [ pipeline("linux", "amd64"), -] - // pipeline("linux", "arm64"), - // pipeline("darwin", "amd64"), - // pipeline("darwin", "arm64"), - // pipeline("windows", "amd64"), - // pipeline("windows", "arm64"), -// ] \ No newline at end of file + pipeline("linux", "arm64"), + pipeline("darwin", "amd64"), + pipeline("darwin", "arm64"), + pipeline("windows", "amd64"), + pipeline("windows", "arm64"), +] \ No newline at end of file