mirror of
https://github.com/thegeeklab/url-parser.git
synced 2024-11-17 18:50:42 +00:00
fix source path in build command
This commit is contained in:
parent
06f84a87d1
commit
20dd7ffa46
@ -63,7 +63,7 @@ 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 github-releases-notifier-$BUILD_VERSION .",
|
||||
"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/'
|
||||
]
|
||||
},
|
||||
|
@ -39,7 +39,7 @@ 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 github-releases-notifier-$BUILD_VERSION .
|
||||
- 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/
|
||||
|
||||
- name: executable
|
||||
@ -111,6 +111,6 @@ depends_on:
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: fbeb9dcf896d5f5af227722aeecda447c8aeb4bfe83becb2adcc0ca398f52798
|
||||
hmac: 3c27762ebfb16c87206081475353f598923952f31bf58defe136a142c4dd0959
|
||||
|
||||
...
|
||||
|
@ -10,7 +10,7 @@ Inspired by [herloct/url-parser](https://github.com/herloct/url-parser), a simpl
|
||||
Prebuild multiarch binaries are availabe for Linux only:
|
||||
|
||||
```Shell
|
||||
curl -L https://github.com/xoxys/url-parser/releases/download/0.1.0-beta4/url-parser-0.1.0-linux-amd64 > /usr/local/bin/url-parser
|
||||
curl -L https://github.com/xoxys/url-parser/releases/download/v0.1.0/url-parser-0.1.0-linux-amd64 > /usr/local/bin/url-parser
|
||||
chmod +x /usr/local/bin/url-parser
|
||||
url-parser --help
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user