Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

add VCS information as a label in the image manifest #6

Open
jonboulle opened this issue Feb 18, 2015 · 1 comment
Open

add VCS information as a label in the image manifest #6

jonboulle opened this issue Feb 18, 2015 · 1 comment

Comments

@jonboulle
Copy link
Contributor

goaci should record some useful information into the image manifest (as labels and/or annotations).

I'd suggest the first useful bit of information would be a label referencing the git sha (or hg sha, ...) at which the image was built.

@krnowak
Copy link
Member

krnowak commented Feb 26, 2015

I have implemented getting some information from all VCSes go itself supports, that is - git, hg, svn and bzr. Unfortunately I only tested git only.

My implementation simply creates a label with name like "git", "hg", "svn" or "bzr" and value with whatever "git rev-parse HEAD", "hg id -i", "svnversion" or "bzr revno" returns.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants