mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-24 01:10:31 +00:00
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:
|
build:
|
||||||
image: golang:1.8
|
image: golang:1.8
|
||||||
commands:
|
commands: sh .drone.sh
|
||||||
- ./ci.sh
|
|
||||||
- ./dist.sh
|
|
||||||
secrets: [ ssh_key ]
|
secrets: [ ssh_key ]
|
||||||
when:
|
when:
|
||||||
event: [ push, tag ]
|
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:
|
publish:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
repo: drone/drone
|
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