This commit is contained in:
Robert Kaussow 2020-02-03 00:35:33 +01:00
parent 8cb686144c
commit 34c057f899
3 changed files with 5 additions and 5 deletions

View File

@ -63,8 +63,8 @@ def binaries(arch):
'commands': [
'[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}',
'mkdir -p release/',
"xgo -ldflags \"-X main.Version=$BUILD_VERSION\" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' -out url-parser-$BUILD_VERSION ./cmd/url-parser",
'cp /build/* release/'
"cd cmd/url-parser && xgo -ldflags \"-X main.Version=$BUILD_VERSION\" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' -out url-parser-$BUILD_VERSION .",
'cp /build/* /drone/src/release/'
]
},
{

View File

@ -39,8 +39,8 @@ steps:
commands:
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
- mkdir -p release/
- xgo -ldflags "-X main.Version=$BUILD_VERSION" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' -out url-parser-$BUILD_VERSION ./cmd/url-parser
- cp /build/* release/
- cd cmd/url-parser && xgo -ldflags "-X main.Version=$BUILD_VERSION" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' -out url-parser-$BUILD_VERSION .
- cp /build/* /drone/src/release/
- name: executable
image: golang:1.12
@ -111,6 +111,6 @@ depends_on:
---
kind: signature
hmac: 3c27762ebfb16c87206081475353f598923952f31bf58defe136a142c4dd0959
hmac: 58a67a5f759ed5cb3c383dec029e7ffb7b173143e30b22fcca04f159cbfb49b9
...

BIN
cmd/url-parser/url-parser Executable file

Binary file not shown.