对naiba做特殊判断

This commit is contained in:
Erope 2021-04-11 21:59:33 +08:00
parent 15b5940700
commit c0e31c2f76
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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
}