Skip to content

Commit

Permalink
Update update_dockerfile to catch all version numbers used by jar (aw…
Browse files Browse the repository at this point in the history
  • Loading branch information
aimethed authored Dec 18, 2024
1 parent a01a85a commit dd1760c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/bump_versions/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ def update_yaml(yaml_files, new_version):

def update_dockerfile(dockerfiles, new_version):
for file in dockerfiles:
subprocess.run(["sed", "-i", f"s|\(target\/.*-\)[0-9]*\.[0-9]*\.[0-9]*|\\1{new_version}|", file])
subprocess.run(["sed", "-i", f"s|\(xf\s*.*-\)[0-9]*\.[0-9]*\.[0-9]*|\\1{new_version}|", file])
subprocess.run(["sed", "-i", f"s|\(athena-.*\)-[0-9]*\.[0-9]*\.[0-9]*\.jar|\\1-{new_version}.jar|g", file])


def update_project_version(soup, new_version):
Expand Down

0 comments on commit dd1760c

Please sign in to comment.