From c0e31c2f7663e7ce48d5561c3825560e981c3b22 Mon Sep 17 00:00:00 2001 From: Erope Date: Sun, 11 Apr 2021 21:59:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9naiba=E5=81=9A=E7=89=B9=E6=AE=8A?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dashboard.yml | 5 ++++- script/install.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dashboard.yml b/.github/workflows/dashboard.yml index 05540e0..cc28105 100644 --- a/.github/workflows/dashboard.yml +++ b/.github/workflows/dashboard.yml @@ -30,7 +30,10 @@ jobs: - name: Push dasbboard image run: | GHRC_IMAGE_NAME=$(echo "ghcr.io/${{ github.repository_owner }}/nezha-dashboard" | tr '[:upper:]' '[:lower:]') - ALI_IMAGE_NAME=$(echo "registry.cn-shanghai.aliyuncs.com/${{ github.repository_owner }}/nezha-dashboard" | tr '[:upper:]' '[:lower:]') + if [ ${{ github.repository_owner }} = "naiba" ] + then ALI_IMAGE_NAME=$(echo "registry.cn-shanghai.aliyuncs.com/naibahq/nezha-dashboard") + else ALI_IMAGE_NAME=$(echo "registry.cn-shanghai.aliyuncs.com/${{ github.repository_owner }}/nezha-dashboard" | tr '[:upper:]' '[:lower:]') + fi docker tag nezha-dasbboard $GHRC_IMAGE_NAME docker tag nezha-dasbboard $ALI_IMAGE_NAME docker push $GHRC_IMAGE_NAME diff --git a/script/install.sh b/script/install.sh index 303e088..65e45d4 100755 --- a/script/install.sh +++ b/script/install.sh @@ -73,7 +73,7 @@ pre_check() { GITHUB_URL="dn-dao-github-mirror.daocloud.io" Get_Docker_URL="get.daocloud.io/docker" Get_Docker_Argu=" -s docker --mirror Aliyun" - Docker_IMG="registry.cn-shanghai.aliyuncs.com\/naiba\/nezha-dashboard" + Docker_IMG="registry.cn-shanghai.aliyuncs.com\/naibahq\/nezha-dashboard" fi }