diff --git a/.drone.yml b/.drone.yml index 94354d8..c7532d1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,12 +1,19 @@ -workspace: - base: /go - path: src/github.com/drone-plugins/drone-terraform - -pipeline: - test: - image: golang:1.9 +kind: pipeline +type: kubernetes +name: default +steps: + - name: docker + image: plugins/docker environment: - - CGO_ENABLED=0 - commands: - - go test -cover -coverprofile=coverage.out - - go build -ldflags "-s -w -X main.revision=$(git rev-parse HEAD)" -a + DRONE_REPO_BRANCH: master + settings: + repo: porto.interlegis.leg.br/seit/drone-terraform + registry: porto.interlegis.leg.br + mirror: https://registrycache.interlegis.leg.br + pull: if-not-exists + dockerfile: docker/Dockerfile + auto_tag: true + username: + from_secret: porto_user + password: + from_secret: porto_pw