mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-10 19:42:58 +00:00
Make build_line work
This commit is contained in:
@@ -35,7 +35,8 @@ def append_build_history_line(short_image_name, owner, wiki_path, all_tags, cont
|
|||||||
home_wiki_file = os.path.join(wiki_path, 'Home.md')
|
home_wiki_file = os.path.join(wiki_path, 'Home.md')
|
||||||
with open(home_wiki_file, "r") as f:
|
with open(home_wiki_file, "r") as f:
|
||||||
file = f.read()
|
file = f.read()
|
||||||
file.replace("|-|-|-|", "|-|-|-|\n" + build_history_line)
|
TABLE_BEGINNING = "|-|-|-|\n"
|
||||||
|
file = file.replace(TABLE_BEGINNING, TABLE_BEGINNING + build_history_line + "\n")
|
||||||
with open(home_wiki_file, "w") as f:
|
with open(home_wiki_file, "w") as f:
|
||||||
f.write(file)
|
f.write(file)
|
||||||
|
|
||||||
@@ -63,6 +64,6 @@ if __name__ == "__main__":
|
|||||||
arg_parser.add_argument("--wiki-path", required=True, help="Path to the wiki pages")
|
arg_parser.add_argument("--wiki-path", required=True, help="Path to the wiki pages")
|
||||||
args = arg_parser.parse_args()
|
args = arg_parser.parse_args()
|
||||||
|
|
||||||
logger.info(f"Calculated build BUILD_TIMESTAMP: {BUILD_TIMESTAMP}")
|
logger.info(f"Current build timestamp: {BUILD_TIMESTAMP}")
|
||||||
|
|
||||||
create_manifests(args.short_image_name, args.owner, args.wiki_path)
|
create_manifests(args.short_image_name, args.owner, args.wiki_path)
|
||||||
|
Reference in New Issue
Block a user