Skip to content

Commit

Permalink
test: use self-hosted runner
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Oct 21, 2024
1 parent 71a77f8 commit 3de1b73
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
jobs:
build-and-push:
name: Build and push Docker image
runs-on: ubuntu-latest
runs-on: self-hosted
environment: Production
steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
| ------------------------------ | ------------------------ | ------------------------------------------------------------- |
| NezhaBaseUrl | nezha 面板地址 | http://120.x.x.x:8008 |
| NezhaAuth | nezha 面板 API Token | 5hAY3QX6Nl9B3Uxxxx26KMvOMyXS1Udi |
| SitePassword | 页面密码 | **默认**:无密码 |
| SitePassword | 页面密码 | **默认**:无密码 |
| DefaultLocale | 面板默认显示语言 | **默认**:en [简中:zh 繁中:zh-t 英语:en 日语:ja] |
| ForceShowAllServers | 是否强制显示所有服务器 | **默认**:false |
| NEXT_PUBLIC_NezhaFetchInterval | 获取数据间隔(毫秒) | **默认**:2000 |
Expand Down
4 changes: 1 addition & 3 deletions components/SignIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@ export function SignIn() {
});
if (res?.error) {
console.log("login error");
console.log(res);
setErrorState(true);
setSuccessState(false);
} else {
console.log("login success");
console.log(res);
setErrorState(false);
setSuccessState(true);
router.push("/");
Expand Down Expand Up @@ -75,7 +73,7 @@ export function SignIn() {
/>
</label>
<button
className=" px-1.5 py-0.5 w-fit flex items-center gap-1 text-sm font-semibold rounded-[8px] border bg-card hover:brightness-95 transition-all text-card-foreground shadow-lg shadow-neutral-200/40 dark:shadow-none"
className="px-1.5 py-0.5 w-fit flex items-center gap-1 text-sm font-semibold rounded-[8px] border bg-card hover:brightness-95 transition-all text-card-foreground shadow-lg shadow-neutral-200/40 dark:shadow-none"
disabled={loading}
>
{t("Submit")}
Expand Down

0 comments on commit 3de1b73

Please sign in to comment.