From e02de84ffc2f9adfc70c1215e7a749978e473569 Mon Sep 17 00:00:00 2001 From: Fabio Date: Fri, 8 Nov 2024 16:27:22 -0300 Subject: [PATCH] Update drone config file --- .drone.yml | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) 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