Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version and build sha injected at link time into binary #107

Merged
merged 1 commit into from Mar 27, 2020
Merged

Conversation

trevoro
Copy link
Contributor

@trevoro trevoro commented Mar 23, 2020

More or less self explanatory.
Instead of using the updateVersion.sh script which would search and replace code we'd have to merge, we can have a separate system of versions and build IDs. Both of which can be retrieved at runtime by running commit0 version.

We use the HEAD SHA of the git commit we're on so we can trace the commit that produced the binary. Version is human readable / process based so we have to figure that whole thing out.

We should probably also tag our docker images with the commit0:${sha} as well but I can do that separately.

@trevoro trevoro merged commit 8c72dc9 into master Mar 27, 2020
@trevoro trevoro deleted the version branch March 27, 2020 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants