I have something unusual happening on my workflow (snmpcollector/nightly-docker-image.yml at 5eee6a2fc2cc7ec62759500f83e340f014221049 · toni-moreno/snmpcollector · GitHub) needed to create a nightly docker image.
Dockerfile is working fine at home, and also working fine with act (GitHub - nektos/act: Run your GitHub Actions locally 🚀), but no working on github.
here the error in github.
Step 9/30 : RUN go run build.go build ---> Running in 46912de9faac exit status 128 exit status 1 The command '/bin/sh -c go run build.go build' returned a non-zero code: 1 ::error::Command failed: docker build -f Dockerfile -t docker.io/***/snmpcollector:nightly .
But locally and testing with act seem to be working everything ok.
Step 9/30 : RUN go run build.go build | ---> Running in 037a6dd91147 | Version: 0.10.0, Linux Version: 0.10.0, Package Iteration: | rm -r public | rm -r /go/pkg/linux_amd64/github.com/toni-moreno/snmpcollector | rm -r ./bin/snmpcollector | rm -r ./bin/snmpcollector.md5 | GOPATH=/go | go version | go version go1.16 linux/amd64 | go build -ldflags -w -X github.com/toni-moreno/snmpcollector/pkg/agent.Version=0.10.0 -X github.com/toni-moreno/snmpcollector/pkg/agent.Commit=3d2a8c8 -X github.com/toni-moreno/snmpcollector/pkg/agent.BuildStamp=1616623575 -v -o ./bin/snmpcollector ./pkg/ ... ... ...
The error seems to be with docker build .
I’m tested different docker builders but all failing in the same place.
Any idea on what I’m doing wrong?
Thank you in advance.