0
0
mirror of https://github.com/thegeeklab/wp-opentofu.git synced 2024-09-20 01:42:45 +02:00
wp-opentofu/.drone.yml

34 lines
644 B
YAML
Raw Normal View History

2016-10-08 19:17:12 +02:00
workspace:
base: /go
path: src/github.com/drone-plugins/drone-terraform
pipeline:
test:
image: golang:1.6
environment:
- CGO_ENABLED=0
commands:
- go test -cover -coverprofile=coverage.out
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER" -a
2015-11-09 20:23:42 +01:00
2016-01-26 23:47:58 +01:00
coverage:
2016-10-08 19:17:12 +02:00
image: coverage
2016-01-26 23:47:58 +01:00
when:
branch: master
2016-10-08 19:17:12 +02:00
latest:
image: docker
2016-01-26 23:47:58 +01:00
repo: plugins/drone-terraform
2016-10-08 19:17:12 +02:00
tags: [ "latest", "1.0", "1" ]
2015-11-09 20:23:42 +01:00
when:
branch: master
2016-10-08 19:17:12 +02:00
event: push
2015-11-09 20:23:42 +01:00
plugin:
name: Terraform
2016-01-26 23:47:58 +01:00
desc: Execute Terraform plan and apply
2015-11-10 15:52:53 +01:00
type: deploy
2016-01-26 23:47:58 +01:00
image: plugins/drone-terraform
2015-11-09 20:23:42 +01:00
labels:
- terraform