Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actions推送到阿里云上海仓库 && 安装脚本修改 #120

Merged
merged 9 commits into from
Apr 11, 2021
Merged

Actions推送到阿里云上海仓库 && 安装脚本修改 #120

merged 9 commits into from
Apr 11, 2021

Conversation

Erope
Copy link
Member

@Erope Erope commented Apr 11, 2021

Actions推送到阿里云上海仓库 && 安装脚本修改
注意:

  • 最好是阿里云上海,Github的Action运行环境是美国Azure,走上海联通去阿里云上海推送很快,换区域需要修改,push上去大概10M
  • 命名空间和名称均已经写死
  • secrets.ALI_PAT和secrets.ALI_USER需要自行设置
  • jsdelivr的缓存刷新提交后大概需要15分钟才会在网宿的边缘节点生效
  • 缓存刷新那边处理了小写是因为我用户名是大写的 方便测试干脆一起处理下小写
  • 国内安装源会从阿里云上海拉取镜像

@naiba
Copy link
Member

naiba commented Apr 11, 2021

阿里云这个我没用过,从哪注册

@Erope
Copy link
Member Author

Erope commented Apr 11, 2021

阿里云这个我没用过,从哪注册

https://cr.console.aliyun.com/cn-shanghai/instances
挺好使的,虽然只能创建三个命名空间,但可以上传300个镜像,也支持自动构建

- 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:]')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改成 naibahq 吧 naiba 让你用了

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没 naiba我没用 要是用不了就是有其他人已经用了

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

太抢手了

else
GITHUB_RAW_URL="cdn.jsdelivr.net/gh/naiba/nezha@master"
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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里也是

Copy link
Member

@naiba naiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改一下阿里云的注册空间名称

@Erope
Copy link
Member Author

Erope commented Apr 11, 2021

笑哭 你这名字挺抢手的 我自己用的还是erope

@naiba
Copy link
Member

naiba commented Apr 11, 2021

已经配置好了 你改下阿里容器名就可以merge了

@Erope
Copy link
Member Author

Erope commented Apr 11, 2021

已经配置好了 你改下阿里容器名就可以merge了

好了 你试试 给你的用户名加个了特殊判断

@naiba naiba merged commit e916ca0 into nezhahq:master Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants