Skip to content

Commit

Permalink
docs: use INSTALLATION_NAME (#2552)
Browse files Browse the repository at this point in the history
Signed-off-by: kahirokunn <[email protected]>
  • Loading branch information
kahirokunn authored May 10, 2023
1 parent 367ee46 commit f798cdd
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions docs/preview/gha-runner-scale-set-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ In addition to the increased reliability of the automatic scaling, we have worke
GITHUB_APP_ID="<GITHUB_APP_ID>"
GITHUB_APP_INSTALLATION_ID="<GITHUB_APP_INSTALLATION_ID>"
GITHUB_APP_PRIVATE_KEY="<GITHUB_APP_PRIVATE_KEY>"
helm install arc-runner-set \
helm install "${INSTALLATION_NAME}" \
--namespace "${NAMESPACE}" \
--create-namespace \
--set githubConfigUrl="${GITHUB_CONFIG_URL}" \
Expand Down Expand Up @@ -101,13 +101,12 @@ In addition to the increased reliability of the automatic scaling, we have worke
```yaml
name: Test workflow
on:
workflow_dispatch:
workflow_dispatch:
jobs:
test:
test:
runs-on: arc-runner-set
steps:
- name: Hello world
steps:
- name: Hello world
run: echo "Hello world"
```

Expand Down Expand Up @@ -209,10 +208,10 @@ To fix this, you can either:
```yaml
spec:
securityContext:
fsGroup: 123
containers:
- name: runner
securityContext:
fsGroup: 123
containers:
- name: runner
image: ghcr.io/actions/actions-runner:<VERSION> # Replace <VERSION> with the version you want to use
command: ["/home/runner/run.sh"]
```
Expand All @@ -222,15 +221,15 @@ To fix this, you can either:
```yaml
template:
spec:
initContainers:
- name: kube-init
initContainers:
- name: kube-init
image: ghcr.io/actions/actions-runner:latest
command: ["sudo", "chown", "-R", "1001:123", "/home/runner/_work"]
volumeMounts:
- name: work
mountPath: /home/runner/_work
containers:
- name: runner
- name: work
mountPath: /home/runner/_work
containers:
- name: runner
image: ghcr.io/actions/actions-runner:latest
command: ["/home/runner/run.sh"]
```
Expand Down

0 comments on commit f798cdd

Please sign in to comment.