You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/github-on-arm/instance.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,9 @@ Follow these steps in the Google Cloud Console:
19
19
- Open the [Google Cloud Console](https://console.cloud.google.com/).
20
20
- Go to **Navigation menu ▸ Compute Engine ▸ VM instances**, then select **Create instance**.
21
21
- Under **Machine configuration**:
22
-
- Enter **Instance name**, **Region**, and **Zone**.
23
-
- Set **Series** to `C4A`.
24
-
- Choose a machine type such as `c4a-standard-4`.
22
+
- Enter **Instance name**, **Region**, and **Zone**
23
+
- Set **Series** to `C4A`
24
+
- Choose a machine type such as `c4a-standard-4`
25
25
- Under **OS and storage**, select **Change**, pick **Ubuntu** as the operating system, and choose **Ubuntu 24.04 LTS Minimal**. Make sure you select the Arm image variant.
26
26
- Under **Networking**, enable **Allow HTTP traffic** so you can test workloads like NGINX later.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/github-on-arm/nginx-deployment.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,30 @@
1
1
---
2
-
title: Deploy NGINX the GitHub Runner
2
+
title: Deploy NGINX with the GitHub runner
3
3
weight: 5
4
4
5
5
### FIXED, DO NOT MODIFY
6
6
layout: learningpathall
7
7
---
8
8
9
+
## Overview
9
10
10
11
This workflow installs and starts a basic NGINX web server on a self-hosted runner whenever code is pushed to the main branch.
11
12
12
-
In your instance's console, create a directory for the repository:
13
+
In your instance console, create a directory for the repository:
13
14
14
15
```console
15
16
mkdir test-repo && cd test-repo
16
17
echo "# test-repo" >> README.md
17
18
```
18
19
19
-
Then, create the GitHub Actions workflow file at `.github/workflows/deploy-nginx.yaml`.
20
+
Create the GitHub Actions workflow file at `.github/workflows/deploy-nginx.yaml`:
20
21
21
22
```console
22
23
mkdir .github && mkdir .github/workflows/
23
24
vim .github/workflows/deploy-nginx.yaml
24
25
```
25
26
26
-
Paste the following code block into the file and save it.
27
+
Paste the following content into the file:
27
28
28
29
```yaml
29
30
name: Deploy NGINX
@@ -45,7 +46,7 @@ jobs:
45
46
run: sudo systemctl start nginx
46
47
```
47
48
48
-
Now it's time to initiate your repository and push the changes.
49
+
Initialize your repository and push the changes:
49
50
50
51
```console
51
52
git init
@@ -63,15 +64,15 @@ cd ..
63
64
./run.sh
64
65
```
65
66
66
-
You will see in the output of the command that it identifies the a job called `deploy`, and that it finishes after having run the two steps.
67
+
The output shows a job called `deploy` and confirms that both steps ran successfully.
67
68
68
-
###Access the NGINX Server
69
+
## Access the NGINX server
69
70
Once the workflow completes, open your browser and navigate to your machine's external IP address. You will find the information in your instance overview, under **Network interfaces**.
70
71
```
71
72
http://<your-public-IP>
72
73
```
73
74
You should see the NGINX welcome page confirming a successful deployment.
74
75
75
-

76
+

76
77
77
-
You should now know how to set up a self-hosted runner with an Arm-based Google Cloud instance, and use it to run GitHub Actions workflows. From here, you can modify the workflow file to try out different commands.
78
+
You now know how to set up a self-hosted runner with an Arm-based Google Cloud instance, and use it to run GitHub Actions workflows. From here, you can modify the workflow file to try out different commands.
0 commit comments