Skip to content

Commit

Permalink
Update pattern in utils/bump_docker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Apr 25, 2024
1 parent 938d373 commit 2dcc8f9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions utils/bump_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
for file in DOCKERFILE_BASE, DOCKERFILE_LATEXPDF:
content = file.read_text(encoding='utf-8')
content = re.sub(
rf'{re.escape(OPENCONTAINERS_VERSION_PREFIX)} = "{VERSION_PATTERN}"',
rf'{OPENCONTAINERS_VERSION_PREFIX} = "{VERSION}"',
rf'{re.escape(OPENCONTAINERS_VERSION_PREFIX)}="{VERSION_PATTERN}"',
rf'{OPENCONTAINERS_VERSION_PREFIX}="{VERSION}"',
content,
)
content = re.sub(
Expand All @@ -39,16 +39,13 @@


def git(*args: str) -> None:
ret = subprocess.run(
subprocess.run(
('git', *args),
capture_output=True,
cwd=DOCKER_ROOT,
check=True,
text=True,
encoding='utf-8',
)
print(ret.stdout)
print(ret.stderr, file=sys.stderr)


git('checkout', 'master')
Expand Down

0 comments on commit 2dcc8f9

Please sign in to comment.