candidate json 파일명 변경
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"datasaker": "dsk-YY.quarter.increase",
|
||||||
"service": [
|
"service": [
|
||||||
{
|
{
|
||||||
"type": "front",
|
"type": "front",
|
||||||
6
main.py
6
main.py
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user