Skip to content

Commit

Permalink
contents(gitlab-ce): Replace apt-key with modern gpg approach
Browse files Browse the repository at this point in the history
Related: #171
  • Loading branch information
taoky committed Oct 11, 2024
1 parent 5a3ff12 commit d548101
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contents/gitlab-ce.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ cname: 'gitlab-ce'

<CodeBlock>
```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
```
</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_gitlab-ce-archive-keyring.gpg] {{http_protocol}}{{mirror}}/{{os_name}} {{release_name}} main
```

</CodeBlock>
Expand Down

0 comments on commit d548101

Please sign in to comment.