fix(docker): improve docker tags to be cleared and avoid conflicts (#26787)

This commit is contained in:
Maxime Beauchemin
2024-01-30 23:03:25 -08:00
committed by GitHub
parent 39973cd38e
commit 4b77129cc9
15 changed files with 861 additions and 253 deletions

View File

@@ -30,15 +30,3 @@ class BashMock:
env={"TEST_ENV": "true"},
)
return result
@staticmethod
def docker_build_push(tag, target, platform, branch):
cmd = f'./scripts/docker_build_push.sh "{tag}" "{target}" "{platform}"'
result = subprocess.run(
cmd,
shell=True,
capture_output=True,
text=True,
env={"TEST_ENV": "true", "GITHUB_REF": f"refs/heads/{branch}"},
)
return result