From f5be97beb9d9fd261de8460ef13ab35411c4205d Mon Sep 17 00:00:00 2001 From: "Nicholas St. Germain" Date: Sun, 3 Feb 2019 23:50:02 -0600 Subject: [PATCH] remove manifest-generator --- manifest_generator.py | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 manifest_generator.py diff --git a/manifest_generator.py b/manifest_generator.py deleted file mode 100644 index db200db..0000000 --- a/manifest_generator.py +++ /dev/null @@ -1,37 +0,0 @@ -import yaml - -from varken import VERSION - -org = 'boerderij' -project = 'varken' -namespace = f"{org}/{project}" - -yaml_arr = [] -tags = ['latest', VERSION] - -# Docker image, arch, variant, os -arch_list = [('arm', 'arm', 'v6', 'linux'), - ('armhf', 'arm', 'v7', 'linux'), - ('arm64', 'arm64', 'v8', 'linux'), - ('amd64', 'amd64', None, 'linux')] - -for tag in tags: - yaml_doc = { - 'image': f'{namespace}:{tag}', - 'manifests': [] - } - for arch in arch_list: - info = { - 'image': f"{namespace}:{tag}-{arch[0]}", - 'platform': { - 'architecture': arch[1], - 'os': arch[3] - } - } - if arch[2]: - info['platform']['variant'] = arch[2] - yaml_doc['manifests'].append(info) - yaml_arr.append(yaml_doc) - -with open(f".manifest.yaml", 'w') as file: - yaml.dump_all(yaml_arr, file, default_flow_style=False)