[infra] Escape $ in gcb builds.

This commit is contained in:
Oliver Chang 2017-04-04 13:47:36 -07:00
parent 1862be71c9
commit 361ceaece1
1 changed files with 3 additions and 1 deletions

View File

@ -111,7 +111,9 @@ def workdir_from_dockerfile(dockerfile):
for line in lines:
match = re.match(WORKDIR_REGEX, line)
if match:
return match.group(1)
# We need to escape '$' since they're used for subsitutions in Container
# Builer builds.
return match.group(1).replace('$', '$$')
return None