Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inject Git source commit metadata into the image
These values are useful for looking up the state of code when examining images at a particular tag. When setting LABEL values, we can easily pull them out of an image through inspection: docker inspect --format '{{.Config.Labels}}' tiddlywiki The default value of `unknown` is meant to catch the accidental case where an image was pushed manually. The naming of the `SOURCE_COMMIT` variable itself comes from the convention used by Docker Cloud [1] (but might still be undocumented). Labels seemed more appropriate than using ENV variables. [1] docker/hub-feedback#600 (comment)
- Loading branch information