upgrade drone config (#17)

* upgrade drone config

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* remove glide config

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2017-05-06 23:31:30 +08:00
committed by GitHub
parent fc238fb606
commit 042c5d632c
2 changed files with 15 additions and 31 deletions
+15 -25
View File
@@ -2,27 +2,20 @@ workspace:
base: /srv/app
path: src/github.com/appleboy/drone-jenkins
pipeline:
clone:
clone:
git:
image: plugins/git
tags: true
# restore the cache from an sftp server
restore_cache:
image: appleboy/drone-sftp-cache
pull: true
restore: true
mount: [ .glide, vendor ]
ignore_branch: true
depth: 50
pipeline:
test:
image: appleboy/golang-testing
pull: true
environment:
TAGS: netgo
GOPATH: /srv/app
secrets: [ codecov_token ]
commands:
- make dep_install
- make vet
- make lint
- make test
@@ -44,37 +37,34 @@ pipeline:
when:
event: [ tag ]
branch: [ refs/tags/* ]
local: false
docker:
publish_tag:
image: plugins/docker
repo: ${DRONE_REPO}
tags: [ '${DRONE_TAG}' ]
secrets: [ docker_username, docker_password ]
when:
event: [ tag ]
branch: [ refs/tags/* ]
local: false
docker:
publish_latest:
image: plugins/docker
repo: ${DRONE_REPO}
tags: [ 'latest' ]
secrets: [ docker_username, docker_password ]
when:
event: [ push ]
branch: [ master ]
local: false
github:
release:
image: plugins/github-release
secrets: [ github_token ]
files:
- dist/release/*
when:
event: [ tag ]
branch: [ refs/tags/* ]
# rebuild the cache on the sftp server
rebuild_cache:
image: appleboy/drone-sftp-cache
pull: true
rebuild: true
mount: [ .glide, vendor ]
ignore_branch: true
when:
branch: master
local: false
-6
View File
@@ -57,12 +57,6 @@ test:
html:
go tool cover -html=coverage.txt
dep_install:
glide install
dep_update:
glide up
install: $(SOURCES)
go install -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)'