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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docker] Docker image doesn't report testing tool version #769

Closed
garethsb opened this issue Mar 14, 2023 · 2 comments
Closed

[Docker] Docker image doesn't report testing tool version #769

garethsb opened this issue Mar 14, 2023 · 2 comments

Comments

@garethsb
Copy link
Contributor

CONFIG['VERSION'] is the Git repo revision hash when running the testing tool from a git clone... but run from the Docker image it's just the string 'Unknown' 馃槥

@garethsb
Copy link
Contributor Author

This doesn't work:

TOOL_VERSION = repo.git.rev_parse(repo.head.object.hexsha, short=7)

We probably need to inject a build-arg, turn it into an environment variable and use that if it's present?

https://stackoverflow.com/a/63178429

@garethsb
Copy link
Contributor Author

Fixed by #789

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

No branches or pull requests

1 participant