diff --git a/ci.sh b/.drone.sh similarity index 100% rename from ci.sh rename to .drone.sh diff --git a/.drone.yml b/.drone.yml index 699d4a64..e49f7c16 100644 --- a/.drone.yml +++ b/.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 diff --git a/dist.sh b/dist.sh deleted file mode 100755 index 8385f530..00000000 --- a/dist.sh +++ /dev/null @@ -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