feat(scripts): ✨ Log new tag when deploying.
This commit is contained in:
Vendored
+1
-1
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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}"
|
||||||
|
|||||||
Reference in New Issue
Block a user