Skip to content

Commit

Permalink
contents(gitlab-runner): Switch to new gpg key url and use signed-by (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec authored Sep 7, 2024
1 parent 02c396e commit c47bfa9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contents/gitlab-runner.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ cname: 'gitlab-runner'

### Debian/Ubuntu 用户

首先信任 GitLab 的 GPG 公钥:
首先下载 GitLab 的 GPG 公钥:

<CodeBlock>
```bash
curl https://packages.gitlab.com/gpg.key 2> /dev/null | {{sudo}}apt-key add - &>/dev/null
curl -L https://packages.gitlab.com/runner/gitlab-runner/gpgkey | gpg --dearmor > /usr/share/keyrings/gitlab-runner.gpg
```
</CodeBlock>

Expand All @@ -36,7 +36,7 @@ curl https://packages.gitlab.com/gpg.key 2> /dev/null | {{sudo}}apt-key add - &>
>

```properties
deb {{http_protocol}}{{mirror}}/{{os_name}} {{release_name}} main
deb [signed-by=/usr/share/keyrings/gitlab-runner.gpg] {{http_protocol}}{{mirror}}/{{os_name}} {{release_name}} main
```

</CodeBlock>
Expand Down

0 comments on commit c47bfa9

Please sign in to comment.