mirror of
https://github.com/thegeeklab/drone-s3-sync.git
synced 2024-11-22 11:10:39 +00:00
33 lines
598 B
YAML
33 lines
598 B
YAML
workspace:
|
|
base: /go
|
|
|
|
pipeline:
|
|
test:
|
|
image: golang:1.6
|
|
environment:
|
|
- CGO_ENABLED=0
|
|
commands:
|
|
- go vet
|
|
- go test -cover -coverprofile=coverage.out
|
|
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER" -a -tags netgo
|
|
|
|
latest:
|
|
image: docker
|
|
repo: plugins/s3-sync
|
|
tags: [ "latest", "1.0", "1" ]
|
|
when:
|
|
branch: master
|
|
event: push
|
|
|
|
plugin:
|
|
name: S3 Sync
|
|
desc: Sync a directory with an Amazon S3 Bucket
|
|
type: publish
|
|
image: plugins/drone-s3-sync
|
|
labels:
|
|
- publish
|
|
- artifacts
|
|
- amazon
|
|
- aws
|
|
- s3
|