|
@ -1,33 +1,28 @@ |
|
|
build: |
|
|
workspace: |
|
|
image: golang:1.5 |
|
|
base: /go |
|
|
|
|
|
path: src/github.com/drone-plugins/drone-terraform |
|
|
|
|
|
|
|
|
|
|
|
pipeline: |
|
|
|
|
|
test: |
|
|
|
|
|
image: golang:1.6 |
|
|
environment: |
|
|
environment: |
|
|
- CGO_ENABLED=0 |
|
|
- CGO_ENABLED=0 |
|
|
commands: |
|
|
commands: |
|
|
- make deps |
|
|
- go test -cover -coverprofile=coverage.out |
|
|
- make vet |
|
|
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER" -a |
|
|
- make build |
|
|
|
|
|
- make test |
|
|
|
|
|
|
|
|
|
|
|
publish: |
|
|
|
|
|
coverage: |
|
|
coverage: |
|
|
|
|
|
image: coverage |
|
|
when: |
|
|
when: |
|
|
branch: master |
|
|
branch: master |
|
|
docker: |
|
|
|
|
|
username: $$DOCKER_USER |
|
|
latest: |
|
|
password: $$DOCKER_PASS |
|
|
image: docker |
|
|
email: $$DOCKER_EMAIL |
|
|
|
|
|
repo: plugins/drone-terraform |
|
|
repo: plugins/drone-terraform |
|
|
tag: latest |
|
|
tags: [ "latest", "1.0", "1" ] |
|
|
when: |
|
|
when: |
|
|
branch: master |
|
|
branch: master |
|
|
docker: |
|
|
event: push |
|
|
username: $$DOCKER_USER |
|
|
|
|
|
password: $$DOCKER_PASS |
|
|
|
|
|
email: $$DOCKER_EMAIL |
|
|
|
|
|
repo: plugins/drone-terraform |
|
|
|
|
|
tag: develop |
|
|
|
|
|
when: |
|
|
|
|
|
branch: develop |
|
|
|
|
|
|
|
|
|
|
|
plugin: |
|
|
plugin: |
|
|
name: Terraform |
|
|
name: Terraform |
|
|