0
0
mirror of https://github.com/thegeeklab/wp-s3-action.git synced 2024-11-14 00:00:39 +00:00
wp-s3-action/.drone.yml

33 lines
598 B
YAML
Raw Normal View History

2016-05-13 06:54:07 +00:00
workspace:
base: /go
pipeline:
test:
2016-05-13 06:54:07 +00:00
image: golang:1.6
environment:
- CGO_ENABLED=0
2016-05-13 06:54:07 +00:00
commands:
- 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
latest:
image: docker
repo: plugins/s3-sync
tags: [ "latest", "1.0", "1" ]
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
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