fix: Everything.
This commit is contained in:
+5
-6
@@ -31,17 +31,16 @@ for tag in tags:
|
||||
if version > latest_version:
|
||||
latest_version = version
|
||||
|
||||
print(f"Updating to tag v{version}...")
|
||||
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{version}"
|
||||
f"microk8s kubectl set image sts/bot bot=git.nyeki.dev/payphone/payphone-shard:v{latest_version}"
|
||||
)
|
||||
os.system(
|
||||
f"""
|
||||
microk8s kubectl set image deploy/tasks \
|
||||
flush=git.nyeki.dev/payphone/payphone-shard:v{version} \
|
||||
delete-accounts=git.nyeki.dev/payphone/payphone-shard:v{version} \
|
||||
hangup-inactive-calls=git.nyeki.dev/payphone/payphone-shard:v{version}
|
||||
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} \
|
||||
"""
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user