|
@ -2,6 +2,7 @@ workspace: |
|
|
base: /go |
|
|
base: /go |
|
|
|
|
|
|
|
|
pipeline: |
|
|
pipeline: |
|
|
|
|
|
|
|
|
test: |
|
|
test: |
|
|
image: golang:1.9 |
|
|
image: golang:1.9 |
|
|
environment: |
|
|
environment: |
|
@ -9,3 +10,9 @@ 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 |
|
|
|
|
|
|
|
|
|
|
|
build-container: |
|
|
|
|
|
image: plugins/docker |
|
|
|
|
|
secrets: [ docker_username, docker_password ] |
|
|
|
|
|
repo: jonathanio/drone-terraform |
|
|
|
|
|
auto_tag: true |
|
|