test: use self-hosted runner

This commit is contained in:
hamster1963 2024-10-21 17:26:31 +08:00
parent 71a77f8308
commit 3de1b73ff5
3 changed files with 3 additions and 5 deletions

View File

@ -12,7 +12,7 @@ env:
jobs: jobs:
build-and-push: build-and-push:
name: Build and push Docker image name: Build and push Docker image
runs-on: ubuntu-latest runs-on: self-hosted
environment: Production environment: Production
steps: steps:
- name: Checkout code - name: Checkout code

View File

@ -36,12 +36,10 @@ export function SignIn() {
}); });
if (res?.error) { if (res?.error) {
console.log("login error"); console.log("login error");
console.log(res);
setErrorState(true); setErrorState(true);
setSuccessState(false); setSuccessState(false);
} else { } else {
console.log("login success"); console.log("login success");
console.log(res);
setErrorState(false); setErrorState(false);
setSuccessState(true); setSuccessState(true);
router.push("/"); router.push("/");
@ -75,7 +73,7 @@ export function SignIn() {
/> />
</label> </label>
<button <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} disabled={loading}
> >
{t("Submit")} {t("Submit")}