Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
GitLab
管理
动态
成员
标记
计划
议题
议题看板
里程碑
迭代
需求
代码
合并请求
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
锁定的文件
构建
流水线
作业
流水线计划
测试用例
产物
部署
发布
Package registry
Container registry
模型注册表
运维
环境
Terraform 模块
监控
事件
服务台
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
代码评审分析
议题分析
洞察
模型实验
效能分析
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
gitlab-cn
GitLab
提交
c7c693f0
提交
c7c693f0
编辑于
1 year ago
作者:
Nao Hashizume
浏览文件
操作
下载
补丁
差异文件
Add asdf-install target for gitlab-pages
上级
e8e695db
No related branches found
No related tags found
无相关合并请求
变更
3
隐藏空白变更内容
行内
左右并排
显示
3 个更改的文件
.tool-versions
+0
-2
0 个添加, 2 个删除
.tool-versions
support/asdf-combine
+0
-3
0 个添加, 3 个删除
support/asdf-combine
support/makefiles/Makefile.gitlab-pages.mk
+17
-5
17 个添加, 5 个删除
support/makefiles/Makefile.gitlab-pages.mk
有
17 个添加
和
10 个删除
.tool-versions
+
0
−
2
浏览文件 @
c7c693f0
...
@@ -13,8 +13,6 @@ gitleaks 8.16.4
...
@@ -13,8 +13,6 @@ gitleaks 8.16.4
# 1.21.5:
# 1.21.5:
# - https://gitlab.com/gitlab-org/gitlab/-/raw/master/workhorse/.tool-versions
# - https://gitlab.com/gitlab-org/gitlab/-/raw/master/workhorse/.tool-versions
# 1.21.4:
# 1.21.4:
# - https://gitlab.com/gitlab-org/gitlab-pages/-/raw/master/.tool-versions
# - https://gitlab.com/gitlab-org/gitlab-pages -> https://gitlab.com/gitlab-org/gitlab/-/raw/master/GITLAB_PAGES_VERSION
# - https://gitlab.com/gitlab-org/gitaly/-/raw/master/.tool-versions
# - https://gitlab.com/gitlab-org/gitaly/-/raw/master/.tool-versions
# - https://gitlab.com/gitlab-org/gitaly -> https://gitlab.com/gitlab-org/gitlab/-/raw/master/GITALY_SERVER_VERSION
# - https://gitlab.com/gitlab-org/gitaly -> https://gitlab.com/gitlab-org/gitlab/-/raw/master/GITALY_SERVER_VERSION
# - https://gitlab.com/gitlab-org/gitlab-elasticsearch-indexer/-/raw/main/.tool-versions
# - https://gitlab.com/gitlab-org/gitlab-elasticsearch-indexer/-/raw/main/.tool-versions
...
...
此差异已折叠。
点击以展开。
support/asdf-combine
+
0
−
3
浏览文件 @
c7c693f0
...
@@ -13,7 +13,6 @@ FileNotFoundError = Class.new(StandardError)
...
@@ -13,7 +13,6 @@ FileNotFoundError = Class.new(StandardError)
GITLAB_ORG_URL
=
'https://gitlab.com/gitlab-org'
GITLAB_ORG_URL
=
'https://gitlab.com/gitlab-org'
GITLAB_URL
=
"
#{
GITLAB_ORG_URL
}
/gitlab"
.
freeze
GITLAB_URL
=
"
#{
GITLAB_ORG_URL
}
/gitlab"
.
freeze
GITLAB_PAGES_URL
=
"
#{
GITLAB_ORG_URL
}
/gitlab-pages"
.
freeze
GITALY_URL
=
"
#{
GITLAB_ORG_URL
}
/gitaly"
.
freeze
GITALY_URL
=
"
#{
GITLAB_ORG_URL
}
/gitaly"
.
freeze
GITLAB_RUNNER_URL
=
"
#{
GITLAB_ORG_URL
}
/gitlab-runner"
.
freeze
GITLAB_RUNNER_URL
=
"
#{
GITLAB_ORG_URL
}
/gitlab-runner"
.
freeze
GITLAB_UI_URL
=
"
#{
GITLAB_ORG_URL
}
/gitlab-ui"
.
freeze
GITLAB_UI_URL
=
"
#{
GITLAB_ORG_URL
}
/gitlab-ui"
.
freeze
...
@@ -173,8 +172,6 @@ end
...
@@ -173,8 +172,6 @@ end
tool_versions_files
=
[
tool_versions_files
=
[
RemoteToolVersionFile
.
new
(
GITLAB_URL
),
RemoteToolVersionFile
.
new
(
GITLAB_URL
),
RemoteToolVersionFile
.
new
(
GITLAB_URL
,
path:
'workhorse'
),
RemoteToolVersionFile
.
new
(
GITLAB_URL
,
path:
'workhorse'
),
RemoteToolVersionFile
.
new
(
GITLAB_PAGES_URL
),
RemoteToolVersionFile
.
new
(
GITLAB_PAGES_URL
,
ref:
ref_from_remote_file_for_gitlab_project
(
'GITLAB_PAGES_VERSION'
),
label_ref:
url_for_remote_file_for_gitlab_project
(
'GITLAB_PAGES_VERSION'
)),
RemoteToolVersionFile
.
new
(
GITALY_URL
),
RemoteToolVersionFile
.
new
(
GITALY_URL
),
RemoteToolVersionFile
.
new
(
GITALY_URL
,
ref:
ref_from_remote_file_for_gitlab_project
(
'GITALY_SERVER_VERSION'
),
label_ref:
url_for_remote_file_for_gitlab_project
(
'GITALY_SERVER_VERSION'
)),
RemoteToolVersionFile
.
new
(
GITALY_URL
,
ref:
ref_from_remote_file_for_gitlab_project
(
'GITALY_SERVER_VERSION'
),
label_ref:
url_for_remote_file_for_gitlab_project
(
'GITALY_SERVER_VERSION'
)),
RemoteToolVersionFile
.
new
(
GITLAB_RUNNER_URL
,
ref:
'main'
),
RemoteToolVersionFile
.
new
(
GITLAB_RUNNER_URL
,
ref:
'main'
),
...
...
此差异已折叠。
点击以展开。
support/makefiles/Makefile.gitlab-pages.mk
+
17
−
5
浏览文件 @
c7c693f0
gitlab_pages_
clone_
dir
=
gitlab-pages
gitlab_pages_dir
=
${
gitlab_development_root
}
/
gitlab-pages
gitlab_pages_version
=
$(
shell support/resolve-dependency-commitish
"
${
gitlab_development_root
}
/gitlab/GITLAB_PAGES_VERSION"
)
gitlab_pages_version
=
$(
shell support/resolve-dependency-commitish
"
${
gitlab_development_root
}
/gitlab/GITLAB_PAGES_VERSION"
)
ifeq
($(gitlab_pages_enabled),true)
ifeq
($(gitlab_pages_enabled),true)
...
@@ -18,21 +18,33 @@ endif
...
@@ -18,21 +18,33 @@ endif
.PHONY
:
gitlab-pages-update-run
.PHONY
:
gitlab-pages-update-run
gitlab-pages-update-run
:
gitlab-pages-secret gitlab-pages/gitlab-pages.conf gitlab-pages/bin/gitlab-pages
gitlab-pages-update-run
:
gitlab-pages-secret gitlab-pages/gitlab-pages.conf gitlab-pages/bin/gitlab-pages
gitlab-pages-asdf-install
:
ifeq
($(asdf_opt_out),false)
@
echo
@
echo
"
${
DIVIDER
}
"
@
echo
"Installing asdf tools from
${
gitlab_pages_dir
}
/.tool-versions"
@
echo
"
${
DIVIDER
}
"
$(
Q
)
cd
${
gitlab_pages_dir
}
&&
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME
=
"
${
gitlab_pages_dir
}
/.tool-versions"
asdf
install
$(
Q
)
cd
${
gitlab_pages_dir
}
&&
asdf reshim
else
@
true
endif
.PHONY
:
gitlab-pages/bin/gitlab-pages
.PHONY
:
gitlab-pages/bin/gitlab-pages
gitlab-pages/bin/gitlab-pages
:
gitlab-pages/.git/pull
gitlab-pages/bin/gitlab-pages
:
gitlab-pages/.git/pull
gitlab-pages-asdf-install
@
echo
@
echo
@
echo
"
${
DIVIDER
}
"
@
echo
"
${
DIVIDER
}
"
@
echo
"Compiling gitlab-org/gitlab-pages"
@
echo
"Compiling gitlab-org/gitlab-pages"
@
echo
"
${
DIVIDER
}
"
@
echo
"
${
DIVIDER
}
"
$(
Q
)
rm
-f
gitlab-pages/bin/gitlab-pages
$(
Q
)
rm
-f
gitlab-pages/bin/gitlab-pages
$(
Q
)
support/asdf-exec
${
gitlab_pages_
clone_
dir
}
$(
MAKE
)
${
QQ
}
$(
Q
)
support/asdf-exec
${
gitlab_pages_dir
}
$(
MAKE
)
${
QQ
}
gitlab-pages/.git
:
gitlab-pages/.git
:
$(
Q
)
support/move-existing-gitlab-pages-directory
||
GIT_REVISION
=
"
${
gitlab_pages_version
}
"
support/component-git-clone
${
git_params
}
${
gitlab_pages_repo
}
${
gitlab_pages_
clone_
dir
}
${
QQ
}
$(
Q
)
support/move-existing-gitlab-pages-directory
||
GIT_REVISION
=
"
${
gitlab_pages_version
}
"
support/component-git-clone
${
git_params
}
${
gitlab_pages_repo
}
${
gitlab_pages_dir
}
${
QQ
}
gitlab-pages/.git/pull
:
gitlab-pages/.git
gitlab-pages/.git/pull
:
gitlab-pages/.git
@
echo
@
echo
@
echo
"
${
DIVIDER
}
"
@
echo
"
${
DIVIDER
}
"
@
echo
"Updating gitlab-org/gitlab-pages to
${
gitlab_pages_version
}
"
@
echo
"Updating gitlab-org/gitlab-pages to
${
gitlab_pages_version
}
"
@
echo
"
${
DIVIDER
}
"
@
echo
"
${
DIVIDER
}
"
$(
Q
)
support/component-git-update gitlab_pages
"
${
gitlab_pages_
clone_
dir
}
"
"
${
gitlab_pages_version
}
"
master
$(
Q
)
support/component-git-update gitlab_pages
"
${
gitlab_pages_dir
}
"
"
${
gitlab_pages_version
}
"
master
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录