As per the example on the docs , I have a config file that looks like
workspace:
base: /go
path: src/github.com/adelowo/gotils
pipeline:
fmt_check:
image: golang
pull: true
commands:
- make verify_goimports
- make fmt-check
vet:
image: golang
pull: true
commands:
- make dependencies
- make vet
integration:
image: golang
pull: true
environment:
- CONSUL_HTTP_ADDR=discovery:8500
commands:
- make dependencies
- make integration_tests
services:
discovery:
image: consul:latest
ports:
- "8400:8400"
- "8500:8500"
- "8600:8600"
command: "agent -dev"
But in my Golang tests, I keep on getting Put http://discovery:8500/v1/agent/service/register: dial tcp 192.168.0.2:8500: connect: connection refused
… See the build https://ci.lanre.wtf/adelowo/gotils/5/6
If code clarification is needed, it is at https://github.com/adelowo/gotils/pull/2
Thanks