feat(scripts): ✨ Log new tag when deploying.

This commit is contained in:
Nyeki.py
2024-11-05 00:51:19 -03:00
parent 8af01ae327
commit a7f64de5b4
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
"conventionalCommits.scopes": ["bot", "db", "tasks"], "conventionalCommits.scopes": ["bot", "db", "tasks", "scripts"],
"yaml.schemas": { "yaml.schemas": {
"kubernetes://schema/apps/v1%40deployment": "file:///c%3A/Users/rafab/Documents/Repos/Payphone-1/k8s.yml" "kubernetes://schema/apps/v1%40deployment": "file:///c%3A/Users/rafab/Documents/Repos/Payphone-1/k8s.yml"
} }
+2
View File
@@ -31,6 +31,8 @@ for tag in tags:
if version > latest_version: if version > latest_version:
latest_version = version latest_version = version
print(f"Updating to tag v{version}...")
os.system(f"git pull https://{username}:{password}@git.nyeki.dev/payphone/payphone") os.system(f"git pull https://{username}:{password}@git.nyeki.dev/payphone/payphone")
os.system( 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{version}"