feat: сборка в контейнеры
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import logging
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
@@ -10,6 +11,8 @@ from .json_formatter import JSONFormatter
|
||||
|
||||
|
||||
def get_git_commit() -> str:
|
||||
if commit := os.getenv('GIT_COMMIT'):
|
||||
return commit
|
||||
try:
|
||||
return subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD'], text=True).strip()
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user