feat: try to use admonitions

This commit is contained in:
Simon Cornet 2025-06-10 16:39:26 +02:00
commit 2686b33acd

View file

@ -3,7 +3,7 @@
A quick and dirty guide for making the Gitlab Runner work on OCP. This is probably not what you want for you prodcution A quick and dirty guide for making the Gitlab Runner work on OCP. This is probably not what you want for you prodcution
environment... environment...
## Step 1 Setup namespace and RBAC ## Step 1 | Setup namespace and RBAC
```shell ```shell
oc new-project gitlab-runner oc new-project gitlab-runner
@ -40,27 +40,28 @@ roleRef:
EOF EOF
``` ```
## Step 2 Create secrets ## Step 2 | Create secrets
[!warning] REPLACE YOUR TOKEN! !!! note
REPLACE YOUR TOKEN!
```shell ```shell
# 2. Create secret (REPLACE TOKEN!)
oc create secret generic gitlab-runner-secret \ oc create secret generic gitlab-runner-secret \
--from-literal=runner-registration-token=YOUR_REGISTRATION_TOKEN \ --from-literal=runner-registration-token=YOUR_REGISTRATION_TOKEN \
-n gitlab-runner -n gitlab-runner
``` ```
## 3. Apply SCCs ## Step 3 | Apply SCCs
```shell ```shell
oc adm policy add-scc-to-user anyuid -z gitlab-runner -n gitlab-runner oc adm policy add-scc-to-user anyuid -z gitlab-runner -n gitlab-runner
oc adm policy add-scc-to-user privileged -z gitlab-runner -n gitlab-runner oc adm policy add-scc-to-user privileged -z gitlab-runner -n gitlab-runner
``` ```
## 4. Deploy runner (REPLACE TOKEN IN YAML!) ## Step 4 | Deploy runner
[!warning] REPLACE YOUR TOKEN! !!! note
REPLACE YOUR TOKEN!
```shell ```shell
oc apply -f - <<EOF oc apply -f - <<EOF