mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
feat: add Docker Hub
This commit is contained in:
parent
3796dc8687
commit
abdd7f245f
7
.github/workflows/Deploy.yml
vendored
7
.github/workflows/Deploy.yml
vendored
@ -13,6 +13,12 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Login to AliYun Container Registry
|
- name: Login to AliYun Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
@ -25,6 +31,7 @@ jobs:
|
|||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
|
hamster1963/nezha-dash
|
||||||
registry.cn-guangzhou.aliyuncs.com/hamster-home/nezha-dash
|
registry.cn-guangzhou.aliyuncs.com/hamster-home/nezha-dash
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=latest
|
type=raw,value=latest
|
||||||
|
@ -9,6 +9,9 @@ export async function GET(_: Request) {
|
|||||||
return NextResponse.json(response, { status: 200 });
|
return NextResponse.json(response, { status: 200 });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
return NextResponse.json({ error: "fetch nezha data failed" }, { status: 400 });
|
return NextResponse.json(
|
||||||
|
{ error: "fetch nezha data failed" },
|
||||||
|
{ status: 400 },
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user