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

Embed a static git commit hash in the gardener binary #324

Merged
merged 3 commits into from
Mar 2, 2021

Conversation

stephen-soltesz
Copy link
Contributor

@stephen-soltesz stephen-soltesz commented Mar 1, 2021

Currently, etl-gardener reads the "GIT_COMMIT" value from its runtime environment, which could be out of sync with reality. This change embeds the real git commit as a static variable at build time.

This change simplifies configuration and supports an effort to migrate the gardener deployment to cloudbuild.


This change is Reviewable

@coveralls
Copy link
Collaborator

Coverage Status

Coverage increased (+0.06%) to 60.479% when pulling 654fac0 on sandbox-soltesz-static-gitcommit into c272940 on master.

Copy link
Contributor

@robertodauria robertodauria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 11 of 11 files at r1.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained

Copy link
Contributor

@robertodauria robertodauria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! 1 of 1 approvals obtained

@stephen-soltesz
Copy link
Contributor Author

The command to read the local Version: git describe --tags does not work as intended b/c CB uses a shallow git clone without all of the tags and history available. I think this is okay for now, b/c afaict, this value didn't work before either.

Ultimately, I'd like to populate this with either the branch (for sandbox and staging) or the tag (prod).

@stephen-soltesz stephen-soltesz merged commit e82fb30 into master Mar 2, 2021
@stephen-soltesz stephen-soltesz deleted the sandbox-soltesz-static-gitcommit branch August 12, 2022 17: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.

3 participants