From a7f64de5b47f612152ad01e8a5cc2f4e1ecb1a76 Mon Sep 17 00:00:00 2001 From: "Nyeki.py" <84998222+Nekidev@users.noreply.github.com> Date: Tue, 5 Nov 2024 00:51:19 -0300 Subject: [PATCH] feat(scripts): :sparkles: Log new tag when deploying. --- .vscode/settings.json | 2 +- scripts/deploy.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 6094f00..74bb012 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,5 @@ { - "conventionalCommits.scopes": ["bot", "db", "tasks"], + "conventionalCommits.scopes": ["bot", "db", "tasks", "scripts"], "yaml.schemas": { "kubernetes://schema/apps/v1%40deployment": "file:///c%3A/Users/rafab/Documents/Repos/Payphone-1/k8s.yml" } diff --git a/scripts/deploy.py b/scripts/deploy.py index ec37a3f..0e03007 100644 --- a/scripts/deploy.py +++ b/scripts/deploy.py @@ -31,6 +31,8 @@ for tag in tags: if version > latest_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"microk8s kubectl set image sts/bot bot=git.nyeki.dev/payphone/payphone-shard:v{version}"