Of commits and containers
Using a Dockerfile to embed revision information in your Go application
Guillaume Bolduc, Unsplash When I’m debugging an issue with an application, one of the first questions I ask is what version of the application I’m looking at. If different versions of my app are deployed in multiple environments, it’s always worth checking to make sure the environment I’m looking at is running the code I think it is. There are a few ways of accomplishing this. Sometimes you can SSH into your server and run git log -1, but if your application is running in a container that’s not always available.