diff options
author | Elizabeth Hunt <lizhunt@amazon.com> | 2025-01-07 10:01:35 -0800 |
---|---|---|
committer | Elizabeth Hunt <lizhunt@amazon.com> | 2025-01-07 10:01:35 -0800 |
commit | 2a08e687f6f33ac2e1526da04dfd982e11b50d36 (patch) | |
tree | 11ee8f8a709f913f06cd6bece20e85866a2b73bf | |
parent | f71e88b234f46d71525f38013a3fb28cee1ba7e8 (diff) | |
download | penguin-new-tab-2a08e687f6f33ac2e1526da04dfd982e11b50d36.tar.gz penguin-new-tab-2a08e687f6f33ac2e1526da04dfd982e11b50d36.zip |
use last updated name
-rw-r--r-- | .drone.yml | 17 | ||||
-rw-r--r-- | app/components/WhoisChart.tsx | 2 |
2 files changed, 18 insertions, 1 deletions
@@ -13,3 +13,20 @@ steps: from_secret: gitea_packpub_password registry: git.simponic.xyz repo: git.simponic.xyz/simponic/penguin-new-tab + - name: ssh + image: appleboy/drone-ssh + settings: + host: ryo.simponic.xyz + username: root + key: + from_secret: cd_ssh_key + port: 22 + command_timeout: 2m + script: + - systemctl restart docker-compose@whois + +trigger: + branch: + - main + event: + - push diff --git a/app/components/WhoisChart.tsx b/app/components/WhoisChart.tsx index 43f5eb9..a373e98 100644 --- a/app/components/WhoisChart.tsx +++ b/app/components/WhoisChart.tsx @@ -57,7 +57,7 @@ export default function UpdateChart() { <div className="glass rounded-lg p-6 shadow-lg"> <div className="flex justify-center items-center mb-8"> <h2 className="text-4xl font-bold"> - {greet(data.whois ? data.whois[0].name : "Friend", new Date())} + {greet(data.whois?.at(-1)?.name ?? "Friend", new Date())} </h2> </div> |