2015-10-16 20:09:45 +00:00
|
|
|
build:
|
|
|
|
image: golang:1.5
|
|
|
|
environment:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
commands:
|
2016-01-18 21:32:57 +00:00
|
|
|
- make deps
|
|
|
|
- make vet
|
|
|
|
- make build
|
|
|
|
- make test
|
2015-10-16 20:09:45 +00:00
|
|
|
|
|
|
|
publish:
|
2016-01-18 21:32:57 +00:00
|
|
|
coverage:
|
|
|
|
when:
|
|
|
|
branch: master
|
|
|
|
docker:
|
|
|
|
username: $$DOCKER_USER
|
|
|
|
password: $$DOCKER_PASS
|
|
|
|
email: $$DOCKER_EMAIL
|
|
|
|
repo: plugins/drone-s3-sync
|
|
|
|
tag: latest
|
|
|
|
when:
|
|
|
|
branch: master
|
2015-10-16 20:09:45 +00:00
|
|
|
docker:
|
2016-01-18 21:32:57 +00:00
|
|
|
username: $$DOCKER_USER
|
2015-10-16 20:09:45 +00:00
|
|
|
password: $$DOCKER_PASS
|
|
|
|
email: $$DOCKER_EMAIL
|
|
|
|
repo: plugins/drone-s3-sync
|
2016-01-18 21:32:57 +00:00
|
|
|
tag: develop
|
2015-10-16 20:09:45 +00:00
|
|
|
when:
|
2016-01-18 21:32:57 +00:00
|
|
|
branch: develop
|
2015-10-16 20:09:45 +00:00
|
|
|
|
|
|
|
plugin:
|
|
|
|
name: S3 Sync
|
2016-01-18 21:32:57 +00:00
|
|
|
desc: Sync a directory with an Amazon S3 Bucket
|
2015-10-16 20:09:45 +00:00
|
|
|
type: publish
|
|
|
|
image: plugins/drone-s3-sync
|
|
|
|
labels:
|
|
|
|
- publish
|
|
|
|
- artifacts
|
|
|
|
- amazon
|
|
|
|
- aws
|
|
|
|
- s3
|