shlogg · Early preview
Daniel Mita @m-dango

Building Docker Image & Repository Tooling With Go

Building a Docker image & setting up tooling for our repo. Using go build to create binary, copying it to scratch image. Also setting up Codecov for code coverage, Dependabot for updates & GitHub Actions.

Previous Post
Now that the server code has been written, we move on to creating and building the Docker image. There's nothing particularly special about it yet, it simply runs go build to create the binary, and copies it over to a scratch image (simple is good)!
Repository tooling comes next. The first being the workflow to build and push our Docker image. This is another fairly straightforward step, following along with  the documentation along with some minor tweaks.
Another tool we'll be including is Codecov. The workflow is set up to run all the tests, generate a code coverage file, and u...