Fix build error

Use self-hosted machine for ARM docker build.
This commit is contained in:
Tindy X committed 2022-08-24 04:21:58 +08:00
1 parent 6c745370f8
commit 47f8e35565
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ TARGET_TAG="latest" if len(sys.argv) < 2 else sys.argv[1]
args=["docker manifest create {}:{}".format(MAIN_IMAGE_NAME, TARGET_TAG)]
for i in glob.glob("/tmp/images/*/*.txt"):
with open(i, "r") as file:
args += " --amend {}@{}".format(MAIN_IMAGE_NAME, file.readline())
args += " --amend {}@{}".format(MAIN_IMAGE_NAME, file.readline().strip())
cmd_create="".join(args)
cmd_push="docker manifest push {}:{}".format(MAIN_IMAGE_NAME, TARGET_TAG)
os.system(cmd_create)