fix naming
This commit is contained in:
parent
ac2276d118
commit
a04676d61c
|
@ -97,7 +97,7 @@ local PipelineBuildBinaries = {
|
||||||
commands: [
|
commands: [
|
||||||
'[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}',
|
'[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}',
|
||||||
'mkdir -p release/',
|
'mkdir -p release/',
|
||||||
"cd cmd/github-releases-notifier && xgo -ldflags \"-s -w -X main.version=$BUILD_VERSION\" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' -out github-releases-notifier .",
|
"cd cmd/url-parser && xgo -ldflags \"-s -w -X main.version=$BUILD_VERSION\" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' -out url-parser .",
|
||||||
'mv /build/* /drone/src/release/',
|
'mv /build/* /drone/src/release/',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -105,7 +105,7 @@ local PipelineBuildBinaries = {
|
||||||
name: 'executable',
|
name: 'executable',
|
||||||
image: 'alpine',
|
image: 'alpine',
|
||||||
commands: [
|
commands: [
|
||||||
'$(find release/ -executable -type f | grep github-releases-notifier-linux-amd64) --help',
|
'$(find release/ -executable -type f | grep url-parser-linux-amd64) --help',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -71,13 +71,13 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
|
- "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}"
|
||||||
- mkdir -p release/
|
- mkdir -p release/
|
||||||
- cd cmd/github-releases-notifier && xgo -ldflags "-s -w -X main.version=$BUILD_VERSION" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' -out github-releases-notifier .
|
- cd cmd/url-parser && xgo -ldflags "-s -w -X main.version=$BUILD_VERSION" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' -out url-parser .
|
||||||
- mv /build/* /drone/src/release/
|
- mv /build/* /drone/src/release/
|
||||||
|
|
||||||
- name: executable
|
- name: executable
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- $(find release/ -executable -type f | grep github-releases-notifier-linux-amd64) --help
|
- $(find release/ -executable -type f | grep url-parser-linux-amd64) --help
|
||||||
|
|
||||||
- name: compress
|
- name: compress
|
||||||
image: alpine
|
image: alpine
|
||||||
|
@ -153,6 +153,6 @@ depends_on:
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 5ca11cf4dc76a28155711c9665abeab4a3e61a5bd8c819588a76ba8baef16cfe
|
hmac: 863651dc0ce1a9591377f87fdfa917ef9926743c2dc5cc5e7fa1256d30af1909
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in New Issue