|
@ -10,24 +10,3 @@ pipeline: |
|
|
commands: |
|
|
commands: |
|
|
- go test -cover -coverprofile=coverage.out |
|
|
- go test -cover -coverprofile=coverage.out |
|
|
- go build -ldflags "-s -w -X main.revision=$(git rev-parse HEAD)" -a |
|
|
- go build -ldflags "-s -w -X main.revision=$(git rev-parse HEAD)" -a |
|
|
|
|
|
|
|
|
coverage: |
|
|
|
|
|
image: coverage |
|
|
|
|
|
when: |
|
|
|
|
|
branch: master |
|
|
|
|
|
|
|
|
|
|
|
latest: |
|
|
|
|
|
image: docker |
|
|
|
|
|
repo: plugins/drone-terraform |
|
|
|
|
|
tags: [ "latest", "1.0", "1" ] |
|
|
|
|
|
when: |
|
|
|
|
|
branch: master |
|
|
|
|
|
event: push |
|
|
|
|
|
|
|
|
|
|
|
plugin: |
|
|
|
|
|
name: Terraform |
|
|
|
|
|
desc: Execute Terraform plan and apply |
|
|
|
|
|
type: deploy |
|
|
|
|
|
image: plugins/drone-terraform |
|
|
|
|
|
labels: |
|
|
|
|
|
- terraform |
|
|
|
|
|