candidate json 파일명 변경

This commit is contained in:
minchulahn
2023-05-25 17:34:34 +09:00
parent 61b20e6008
commit 3f89406ee1
2 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
{ {
"datasaker": "dsk-YY.quarter.increase",
"service": [ "service": [
{ {
"type": "front", "type": "front",

View File

@@ -8,16 +8,16 @@ def get_service_index():
def set_latest_version(): def set_latest_version():
service_index = get_service_index() service_index = get_service_index()
json_data["service"][service_index]["set_latest_version"] = tagName json_data["service"][service_index]["latest_version"] = tagName
if __name__ == '__main__': if __name__ == '__main__':
if len(sys.argv) != 3 or 'rc' not in sys.argv[1]: if len(sys.argv) != 3:
exit(traceback.print_exc()) exit(traceback.print_exc())
tagName = sys.argv[1] tagName = sys.argv[1]
service_name = sys.argv[2] service_name = sys.argv[2]
file_path = "./rc-version.json" file_path = "./candidate-version.json"
with open(file_path, 'r') as json_file: with open(file_path, 'r') as json_file:
json_data = json.load(json_file) json_data = json.load(json_file)