Skip to content

Commit

Permalink
docs(self-hosting examples): misc small fixes (#13426)
Browse files Browse the repository at this point in the history
  • Loading branch information
HonkingGoose committed Jan 8, 2022
1 parent de140c2 commit 576a7c5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/usage/examples/self-hosting.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ The following example runs Renovate hourly, and looks for the self-hosted config
```yml
version: '2.1'
orbs:
renovate: daniel-shuy/renovate@2.1.1
renovate: daniel-shuy/renovate@2.2.0
workflows:
renovate:
jobs:
Expand All @@ -189,7 +189,7 @@ How to validate your config as part of your workflow:
```yml
version: '2.1'
orbs:
renovate: daniel-shuy/renovate@2.1
renovate: daniel-shuy/renovate@2.2.0
workflows:
lint:
jobs:
Expand Down Expand Up @@ -250,7 +250,7 @@ If running against GitHub Enterprise, change the above `gitlab` values to the eq
You can save this file as anything you want and then use `RENOVATE_CONFIG_FILE` env variable to tell Renovate where to find it.

Most people will run Renovate via cron, e.g. once per hour.
Here is an example bash script that you can point `cron` to:
Here is an example Bash script that you can point `cron` to:

```sh
#!/bin/bash
Expand All @@ -273,9 +273,9 @@ You should save and test out this script manually first, and add it to cron once

This section describes how to use Git binary with SSH for GitLab, to avoid API shortcomings.

You need to first create a SSH key, then add the public part to GitLab (see this [guide](https://docs.gitlab.com/ee/ssh/))
You need to first create a SSH key, then add the public part to GitLab (see this [guide](https://docs.gitlab.com/ee/ssh/)).

Then, you need to create the secret to add the SSH key, and the following config to your container
Then, you need to create the secret to add the SSH key, and the following config to your container:

```
host gitlab.com
Expand All @@ -285,13 +285,13 @@ host gitlab.com
User git
```

To easily create the secret, you can do the following (see [docs](https://kubernetes.io/docs/concepts/configuration/secret/#use-case-pod-with-ssh-keys))
To easily create the secret, you can do the following (see [docs](https://kubernetes.io/docs/concepts/configuration/secret/#use-case-pod-with-ssh-keys)).

```sh
kubectl create secret generic ssh-key-secret --from-file=config=/path/to/config --from-file=id_rsa=/path/to/.ssh/id_rsa --from-file=id_rsa.pub=/path/to/.ssh/id_rsa.pub
```

It creates something like this
It creates something like this:

```yml
apiVersion: v1
Expand Down

0 comments on commit 576a7c5

Please sign in to comment.