diff --git a/.drone.star b/.drone.star index 41bdaed..25258de 100644 --- a/.drone.star +++ b/.drone.star @@ -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/' ] }, { diff --git a/.drone.yml b/.drone.yml index 5585840..1375647 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 ... diff --git a/cmd/url-parser/url-parser b/cmd/url-parser/url-parser new file mode 100755 index 0000000..27e4262 Binary files /dev/null and b/cmd/url-parser/url-parser differ