kind: pipeline type: docker name: default steps: - name: build image: golang:latest environment: GO111MODULE: on GOPROXY: https://goproxy.cn,direct commands: - go build -tags "custom,outputs.influxdb_v2" ./cmd/telegraf