gotestyourself / gotestsum

'go test' runner with output optimized for humans, JUnit XML for CI integration, and a summary of the test results.
Apache License 2.0
2.04k stars 121 forks source link

Docker image with gotestsum #301

Open tarampampam opened 1 year ago

tarampampam commented 1 year ago

Could you please provide an "official" multi-arch docker image to use this tool? It can be simply deployed to the ghcr.io, for example. Use case - a more simple installation in the docker context, like:

COPY --from=gotestyourself/gotestsum:v1.9.0 /usr/local/bin/gotestsum /bin/gotestsum

If you need help with it, I can make a PR with the required changes.

dnephin commented 1 year ago

I like the suggestion! It seems that goreleaser makes it pretty easy to do this: https://goreleaser.com/customization/docker/

The goreleaser config for this project is at .project/goreleaser.yml

The github container registry seems like a good place to publish, since we already use github to publish the binaries.

If you prepare a PR for this, I'll make sure the container registry it setup and get the PR merged.

Thank you!

tarampampam commented 1 year ago

I had no experience with goreleaser before, so... But I can make something like that

dnephin commented 1 year ago

I'd like to avoid a separate build step for uploading the image, if possible. I'll try out the goreleaser config to see how it works.

tarampampam commented 1 year ago

Any news on it?