Upload to GitLab
This commit is contained in:
+4
-4
@@ -16,7 +16,7 @@ username = input("Username for git.nyeki.dev: ")
|
||||
password = getpass.getpass("Password for git.nyeki.dev: ")
|
||||
|
||||
tags = requests.get(
|
||||
"https://git.nyeki.dev/v2/payphone/payphone-shard/tags/list",
|
||||
"https://registry.nyeki.dev/v2/payphone/payphone-shard/tags/list",
|
||||
auth=(username, password),
|
||||
).json()["tags"]
|
||||
|
||||
@@ -35,12 +35,12 @@ print(f"Updating to tag v{latest_version}...")
|
||||
|
||||
os.system(f"git pull https://{username}:{password}@git.nyeki.dev/payphone/payphone")
|
||||
os.system(
|
||||
f"microk8s kubectl set image sts/bot bot=git.nyeki.dev/payphone/payphone-shard:v{latest_version}"
|
||||
f"microk8s kubectl set image sts/bot bot=registry.nyeki.dev/payphone/payphone/shard:v{latest_version}"
|
||||
)
|
||||
os.system(
|
||||
f"""
|
||||
microk8s kubectl set image pod/tasks \
|
||||
connect=git.nyeki.dev/payphone/payphone-shard:v{latest_version} \
|
||||
expire=git.nyeki.dev/payphone/payphone-shard:v{latest_version} \
|
||||
connect=registry.nyeki.dev/payphone/payphone/shard:v{latest_version} \
|
||||
expire=registry.nyeki.dev/payphone/payphone/shard:v{latest_version} \
|
||||
"""
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user