Skip to content

Commit

Permalink
gitlab-ce: port changes
Browse files Browse the repository at this point in the history
  • Loading branch information
taoky committed Oct 11, 2024
1 parent d8c8fb7 commit 0787518
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitlab-ce/deb.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
首先信任 GitLab 的 GPG 公钥:

<tmpl z-lang="bash">
curl https://packages.gitlab.com/gpg.key 2> /dev/null | {{sudo}}apt-key add - &>/dev/null
curl -fsSL https://packages.gitlab.com/gpg.key | {{sudo}}gpg --dearmor > /usr/share/keyrings/gitlab_gitlab-ce-archive-keyring.gpg
</tmpl>

再选择你的 Debian/Ubuntu 版本,将下方内容写入 `/etc/apt/sources.list.d/gitlab-ce.list`

<tmpl z-input="release" z-path="/etc/apt/sources.list.d/gitlab-ce.list">
deb {{endpoint}}/{{os}} {{release}} main
deb [signed-by=/usr/share/keyrings/gitlab_gitlab-ce-archive-keyring.gpg] {{endpoint}}/{{os}} {{release}} main
</tmpl>

安装 gitlab-ce:
Expand Down

0 comments on commit 0787518

Please sign in to comment.