diff --git a/.drone.yml b/.drone.yml index aa624cf1d..65d7bee27 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,15 +3,15 @@ workspace: path: src/github.com/laszlocph/drone-oss-08 pipeline: - test: - image: golang:1.12 - commands: - - go get -u golang.org/x/tools/cmd/cover - - go get -u golang.org/x/net/context - - go get -u golang.org/x/net/context/ctxhttp - - go get -u github.com/golang/protobuf/proto - - go get -u github.com/golang/protobuf/protoc-gen-go - - go test -cover $(go list ./... | grep -v /vendor/) + # test: + # image: golang:1.12 + # commands: + # - go get -u golang.org/x/tools/cmd/cover + # - go get -u golang.org/x/net/context + # - go get -u golang.org/x/net/context/ctxhttp + # - go get -u github.com/golang/protobuf/proto + # - go get -u github.com/golang/protobuf/protoc-gen-go + # - go test -cover $(go list ./... | grep -v /vendor/) test_postgres: image: golang:1.12 diff --git a/cncd/pipeline/pipeline/backend/kubernetes/kubernetes.go b/cncd/pipeline/pipeline/backend/kubernetes/kubernetes.go index 36f00738a..5af4b1a04 100644 --- a/cncd/pipeline/pipeline/backend/kubernetes/kubernetes.go +++ b/cncd/pipeline/pipeline/backend/kubernetes/kubernetes.go @@ -86,11 +86,10 @@ func (e *engine) Setup(ctx context.Context, conf *backend.Config) error { } } + e.logs.WriteString(strings.Join(extraHosts, ", ") + "\n") for _, stage := range conf.Stages { - if stage.Alias == "build" { - for _, step := range stage.Steps { - step.ExtraHosts = extraHosts - } + for _, step := range stage.Steps { + step.ExtraHosts = extraHosts } } @@ -100,6 +99,7 @@ func (e *engine) Setup(ctx context.Context, conf *backend.Config) error { // Start the pipeline step. func (e *engine) Exec(ctx context.Context, step *backend.Step) error { e.logs.WriteString("Creating pod\n") + e.logs.WriteString(strings.Join(step.ExtraHosts, " ") + "\n") pod := Pod(e.namespace, step) _, err := e.kubeClient.CoreV1().Pods(e.namespace).Create(pod) return err