OBS noob questions


I have some noob questions about OBS.
I tried to build a package (go style) and after various operations it worked locally.
The problems was related to network and certificates.
In facts, the first error was:
read: connection refused.
I fix it adding /etc/resolv.conf in /var/tmp/build-root/openSUSE_Tumbleweed/etc/.
The second error was:
x509: certificate signed by unknown authority.
I fix it adding in obs extra packages, the following packages: iputils ca-certificates ca-certificates-cacert ca-certificates-mozilla
I need of iputils package only to test via ping if i have network access from chroot /var/tmp/build-root/etc…, and it was there!

Now, i don’t know if all above is correct, i only know that i can locally to build that package without errors.
After that, i make the commit in OBS (reference server) of my spec file getting tha same errors.

From this log you can see the connection refused error which is the first error that i resolved locally.

Spec file

Please note i written the spec file following this guide

What am i wronging?

Thank you in advance for any help and tips.
I wish everyone a pleasant day