remove CLI from build process
This commit is contained in:
parent
090de39c94
commit
cedc0517bf
3 changed files with 1 additions and 35 deletions
15
.drone.yml
15
.drone.yml
|
@ -28,24 +28,11 @@ pipeline:
|
|||
|
||||
build:
|
||||
image: golang:1.8
|
||||
commands:
|
||||
- ./ci.sh
|
||||
- ./dist.sh
|
||||
commands: sh .drone.sh
|
||||
secrets: [ ssh_key ]
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
|
||||
archive:
|
||||
image: plugins/s3
|
||||
acl: public-read
|
||||
bucket: downloads.drone.io
|
||||
source: release/**/*.*
|
||||
target: /0.6.0/
|
||||
secrets: [ aws_access_key_id, aws_secret_access_key ]
|
||||
when:
|
||||
event: push
|
||||
branch: master
|
||||
|
||||
publish:
|
||||
image: plugins/docker
|
||||
repo: drone/drone
|
||||
|
|
21
dist.sh
21
dist.sh
|
@ -1,21 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
set -v
|
||||
|
||||
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X github.com/drone/drone/version.VersionDev=build.${DRONE_BUILD_NUMBER}" -o release/linux/amd64/drone github.com/drone/drone/drone
|
||||
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags "-X github.com/drone/drone/version.VersionDev=build.${DRONE_BUILD_NUMBER}" -o release/linux/arm64/drone github.com/drone/drone/drone
|
||||
GOOS=linux GOARCH=arm CGO_ENABLED=0 go build -ldflags "-X github.com/drone/drone/version.VersionDev=build.${DRONE_BUILD_NUMBER}" -o release/linux/arm/drone github.com/drone/drone/drone
|
||||
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X github.com/drone/drone/version.VersionDev=build.${DRONE_BUILD_NUMBER}" -o release/windows/amd64/drone github.com/drone/drone/drone
|
||||
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X github.com/drone/drone/version.VersionDev=build.${DRONE_BUILD_NUMBER}" -o release/darwin/amd64/drone github.com/drone/drone/drone
|
||||
|
||||
tar -cvzf release/linux/amd64/drone.tar.gz -C release/linux/amd64 drone
|
||||
tar -cvzf release/linux/arm64/drone.tar.gz -C release/linux/arm64 drone
|
||||
tar -cvzf release/linux/arm/drone.tar.gz -C release/linux/arm drone
|
||||
tar -cvzf release/windows/amd64/drone.tar.gz -C release/windows/amd64 drone
|
||||
tar -cvzf release/darwin/amd64/drone.tar.gz -C release/darwin/amd64 drone
|
||||
|
||||
sha256sum release/linux/amd64/drone.tar.gz > release/linux/amd64/drone.sha256
|
||||
sha256sum release/linux/arm64/drone.tar.gz > release/linux/arm64/drone.sha256
|
||||
sha256sum release/linux/arm/drone.tar.gz > release/linux/arm/drone.sha256
|
||||
sha256sum release/windows/amd64/drone.tar.gz > release/windows/amd64/drone.sha256
|
||||
sha256sum release/darwin/amd64/drone.tar.gz > release/darwin/amd64/drone.sha256
|
Loading…
Reference in a new issue