Browse Source

Update drone config file

master
Fábio Kaiser Rauber 2 months ago
parent
commit
e02de84ffc
  1. 29
      .drone.yml

29
.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

Loading…
Cancel
Save