0
0
mirror of https://github.com/thegeeklab/wp-s3-action.git synced 2024-11-22 01:00:40 +00:00
wp-s3-action/.drone.yml
2016-11-19 13:25:44 +01:00

34 lines
652 B
YAML

workspace:
path: src/github.com/drone-plugins/drone-s3-sync
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
publish:
image: plugins/docker
repo: plugins/s3-sync
tags: [ "latest", "1.1", "1" ]
when:
branch: master
event: push
plugin:
name: S3 Sync
desc: Sync a directory with an Amazon S3 Bucket
type: publish
image: plugins/s3-sync
labels:
- publish
- artifacts
- amazon
- aws
- s3