2016-05-13 06:54:07 +00:00
|
|
|
workspace:
|
2016-11-19 12:25:44 +00:00
|
|
|
path: src/github.com/drone-plugins/drone-s3-sync
|
2016-05-13 06:54:07 +00:00
|
|
|
base: /go
|
|
|
|
|
|
|
|
pipeline:
|
2016-07-31 17:06:39 +00:00
|
|
|
test:
|
2016-05-13 06:54:07 +00:00
|
|
|
image: golang:1.6
|
2016-07-31 17:06:39 +00:00
|
|
|
environment:
|
|
|
|
- CGO_ENABLED=0
|
2016-05-13 06:54:07 +00:00
|
|
|
commands:
|
2016-07-31 17:06:39 +00:00
|
|
|
- go vet
|
|
|
|
- go test -cover -coverprofile=coverage.out
|
|
|
|
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER" -a -tags netgo
|
2015-10-16 20:09:45 +00:00
|
|
|
|
2016-11-19 12:25:44 +00:00
|
|
|
publish:
|
|
|
|
image: plugins/docker
|
2016-07-31 17:06:39 +00:00
|
|
|
repo: plugins/s3-sync
|
2016-11-19 12:25:44 +00:00
|
|
|
tags: [ "latest", "1.1", "1" ]
|
2016-01-18 21:32:57 +00:00
|
|
|
when:
|
|
|
|
branch: master
|
2016-05-13 06:54:07 +00:00
|
|
|
event: push
|
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
|
2016-08-16 22:13:12 +00:00
|
|
|
image: plugins/s3-sync
|
2015-10-16 20:09:45 +00:00
|
|
|
labels:
|
|
|
|
- publish
|
|
|
|
- artifacts
|
|
|
|
- amazon
|
|
|
|
- aws
|
|
|
|
- s3
|