Skip to content
Snippets Groups Projects
Commit dabe47734073 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:sparkles: also add some build args when using a git project

parent 10324f994d4d
No related branches found
No related tags found
1 merge request!165✨ also add some build args when using a git project
......@@ -154,6 +154,12 @@
tags = tags_string.split()
buildargs["VCS_URL"] = check_output(["hg", "paths", "default"]).decode()
buildargs["VCS_REF"] = check_output(["hg", "identify", "--id"]).decode()
elif os.path.exists(".git"):
tags_string = check_output(["git", "describe", "--tags"]).decode()
buildargs["VERSION"] = tags_string
buildargs["SENTRY_RELEASE_ARG"] = tags_string
if tags_string:
tags = tags_string.split()
buildargs["BUILD_DATE"] = datetime.datetime.now().isoformat()
if nmspc.build_arg:
for arg in nmspc.build_arg:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment