mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-01 17:25:02 +00:00
Fix Docker merge manifest
This commit is contained in:
2 files changed
+145
-98
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import glob
|
||||
import os, sys
|
||||
|
||||
MAIN_IMAGE_NAME="tindy2013/subconverter"
|
||||
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())
|
||||
cmd_create="".join(args)
|
||||
cmd_push="docker manifest push {}:{}".format(MAIN_IMAGE_NAME, TARGET_TAG)
|
||||
os.system(cmd_create)
|
||||
os.system(cmd_push)
|
||||
Reference in new issue
Block a user