Skip to content

Commit 61fa943

Browse files
authored
📝 Update deployment.md, instructions to install GitHub Runner in non-root VMs (#1412)
1 parent 24c4f13 commit 61fa943

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

deployment.md

+12-6
Original file line numberDiff line numberDiff line change
@@ -183,22 +183,22 @@ There are already two environments configured, `staging` and `production`. 🚀
183183

184184
### Install GitHub Actions Runner
185185

186-
* On your remote server, if you are running as the `root` user, create a user for your GitHub Actions:
186+
* On your remote server, create a user for your GitHub Actions:
187187

188188
```bash
189-
adduser github
189+
sudo adduser github
190190
```
191191

192192
* Add Docker permissions to the `github` user:
193193

194194
```bash
195-
usermod -aG docker github
195+
sudo usermod -aG docker github
196196
```
197197

198198
* Temporarily switch to the `github` user:
199199

200200
```bash
201-
su - github
201+
sudo su - github
202202
```
203203

204204
* Go to the `github` user's home directory:
@@ -219,9 +219,15 @@ To make sure it runs on startup and continues running, you can install it as a s
219219
exit
220220
```
221221

222-
After you do it, you would be on the `root` user again. And you will be on the previous directory, belonging to the `root` user.
222+
After you do it, you will be on the previous user again. And you will be on the previous directory, belonging to that user.
223223

224-
* Go to the `actions-runner` directory inside of the `github` user's home directory:
224+
Before being able to go the `github` user directory, you need to become the `root` user (you might already be):
225+
226+
```bash
227+
sudo su
228+
```
229+
230+
* As the `root` user, go to the `actions-runner` directory inside of the `github` user's home directory:
225231

226232
```bash
227233
cd /home/github/actions-runner

0 commit comments

Comments
 (0)