Skip to content

Commit fdaac51

Browse files
authored
Merge pull request #2288 from madeline-underwood/github_actions
GitHub actions_PV to check
2 parents a1d1f07 + afb9375 commit fdaac51

File tree

5 files changed

+119
-120
lines changed

5 files changed

+119
-120
lines changed

content/learning-paths/servers-and-cloud-computing/github-on-arm/_index.md

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
---
22
title: Deploy GitHub Actions Self-Hosted Runner on Google Axion C4A virtual machine
33

4-
draft: true
5-
cascade:
6-
draft: true
7-
84
minutes_to_complete: 15
95

10-
who_is_this_for: This is an introductory topic for developers who want to deploy GitHub Actions Self-Hosted Runner on an Arm-based Google Axion C4A instance.
6+
who_is_this_for: This is an introductory topic for developers who want to deploy a GitHub Actions self-hosted runner on an Arm-based Google Axion C4A instance.
117

128
learning_objectives:
13-
- Provision an Arm virtual machine on the Google Cloud Platform using the C4A Google Axion instance family.
14-
- Set up and validate a GitHub Actions self-hosted runner on the Arm virtual machine.
15-
- Deploy a basic CI workflow with NGINX and verify execution on Arm infrastructure.
9+
- Provision an Arm virtual machine on the Google Cloud Platform using the C4A Google Axion instance family
10+
- Set up and validate a GitHub Actions self-hosted runner on the Arm virtual machine
11+
- Deploy a basic CI workflow with NGINX and verify execution on Arm infrastructure
1612

1713
prerequisites:
18-
- A [Google Cloud Platform (GCP)](https://cloud.google.com/free?utm_source=google&hl=en) account with billing enabled.
19-
- A GitHub account. You can sign up [here](https://github.com/signup).
14+
- A [Google Cloud Platform (GCP)](https://cloud.google.com/free?utm_source=google&hl=en) account with billing enabled
15+
- A GitHub account; you can sign up [here](https://github.com/signup)
2016

2117
author: Annie Tallund
2218

@@ -39,22 +35,22 @@ operatingsystems:
3935
# FIXED, DO NOT MODIFY
4036
# ================================================================================
4137
further_reading:
42-
- resource:
43-
title: Google Cloud official website and documentation
44-
link: https://cloud.google.com/docs
45-
type: documentation
46-
47-
- resource:
48-
title: Github-action official website and documentation
49-
link: https://docs.github.com/en/actions
50-
type: documentation
51-
52-
- resource:
53-
title: GitHub Actions Arm runners
54-
link: https://github.blog/news-insights/product-news/arm64-on-github-actions-powering-faster-more-efficient-build-systems/
55-
type: website
56-
57-
- resource:
38+
- resource:
39+
title: Google Cloud documentation
40+
link: https://cloud.google.com/docs
41+
type: documentation
42+
43+
- resource:
44+
title: GitHub Actions documentation
45+
link: https://docs.github.com/en/actions
46+
type: documentation
47+
48+
- resource:
49+
title: GitHub Actions Arm runners (announcement)
50+
link: https://github.blog/news-insights/product-news/arm64-on-github-actions-powering-faster-more-efficient-build-systems/
51+
type: website
52+
53+
- resource:
5854
title: GCP Quickstart Guide to Create a virtual machine
5955
link: https://cloud.google.com/compute/docs/instances/create-start-instance
6056
type: website

content/learning-paths/servers-and-cloud-computing/github-on-arm/background.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ layout: "learningpathall"
88

99
## Google Axion C4A series
1010

11-
The Google Axion C4A series is a family of Arm-based virtual machines built on Google’s custom Axion CPU, which is based on Arm Neoverse-V2 cores. Designed for high-performance and energy-efficient computing, these virtual machines offer strong performance ideal for modern cloud workloads such as CI/CD pipelines, microservices, media processing, and general-purpose applications.
11+
The Google Axion C4A series is a family of Arm-based virtual machines (VMs) built on Google’s custom Axion CPU, which is based on Arm Neoverse-V2 cores. Designed for high-performance and energy-efficient computing, these virtual machines offer strong performance ideal for modern cloud workloads such as CI/CD pipelines, microservices, media processing, and general-purpose applications.
1212

13-
The C4A series provides offer a cost-effective virtual machine while leveraging the scalability and performance benefits of the Arm architecture in Google Cloud.
13+
The C4A series provides cost-effective VMs while leveraging the scalability and performance benefits of the Arm architecture on Google Cloud.
1414

15-
To learn more about Google Axion, refer to the blog [Introducing Google Axion Processors, our new Arm-based CPUs](https://cloud.google.com/blog/products/compute/introducing-googles-new-arm-based-cpu).
15+
Learn more in Google’s announcement: [Introducing Google Axion processors, our new Arm-based CPUs](https://cloud.google.com/blog/products/compute/introducing-googles-new-arm-based-cpu).
1616

1717
## GitHub Actions and CI/CD
1818

19-
GitHub Actions is a powerful CI/CD (Continuous Integration and Continuous Delivery) platform built into GitHub. It allows developers to automate tasks such as building, testing, and deploying code in response to events like code pushes, pull requests, or scheduled jobsdirectly from their GitHub repositories. This helps improve development speed, reliability, and collaboration.
19+
GitHub Actions is a powerful CI/CD (Continuous Integration and Continuous Delivery) platform built into GitHub. It allows developers to automate tasks such as building, testing, and deploying code in response to events like code pushes, pull requests, or scheduled jobs - directly from their GitHub repositories. This helps improve development speed, reliability, and collaboration.
2020

2121
A key feature of GitHub Actions is [self-hosted runners](https://docs.github.com/en/actions/concepts/runners/about-self-hosted-runners), which let you run workflows on your own infrastructure instead of GitHub’s hosted servers. This is especially useful for:
2222

23-
- Running on custom hardware, including Arm64-based systems (e.g., Google Axion virtual machine), to optimize performance and ensure architecture-specific compatibility.
24-
- Private network access, allowing secure interaction with internal services or databases.
25-
- Faster execution, especially for resource-intensive workflows, by using dedicated or high-performance machines.
23+
- Running on custom hardware, including Arm64-based systems (for example, Google Axion virtual machine), to optimize performance and ensure architecture-specific compatibility
24+
- Private network access, allowing secure interaction with internal services or databases
25+
- Faster execution, especially for resource-intensive workflows, by using dedicated or high-performance machines
2626

27-
Self-hosted runners provide more control, flexibility, and cost-efficiency—making them ideal for advanced CI/CD pipelines and platform-specific testing.
27+
Self-hosted runners give you more control, flexibility, and cost efficiency - ideal for advanced CI/CD pipelines and platform-specific testing.

content/learning-paths/servers-and-cloud-computing/github-on-arm/deploy.md

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ weight: 4
66
layout: learningpathall
77
---
88

9+
## Overview
910

10-
This section shows how to deploy a self-hosted GitHub Actions runner on your instance. It covers installing Git and GitHub CLI, authenticating with GitHub and configuring the runner on an Arm64 environment for optimized CI/CD workflows.
11+
This section shows you how to deploy a GitHub Actions self-hosted runner on your Arm64 Google Axion C4A instance. You will install Git and GitHub CLI, authenticate with GitHub, and register the runner so CI/CD workflows run on Arm infrastructure.
1112

12-
### Set up development environment
13+
## Set up your development environment
1314

1415
Start by installing the required dependencies using the `apt` package manager:
1516

@@ -18,7 +19,7 @@ sudo apt update
1819
sudo apt install -y git gh vim
1920
```
2021

21-
Next step is to configure your git credentials. Update the command with your name and email.
22+
Configure your Git identity:
2223

2324
```bash
2425
git config --global user.email "[email protected]"
@@ -27,30 +28,30 @@ git config --global user.name "Your Name"
2728

2829
Now you are ready to connect the machine to GitHub. The command below is used to authenticate the GitHub CLI with your GitHub account. It allows you to securely log in using a web browser or token, enabling the CLI to interact with repositories, actions, and other GitHub features on your behalf.
2930

31+
Authenticate with GitHub:
3032

3133
```console
3234
gh auth login
3335
```
3436

35-
The command will prompt you to make a few choices. For this use-case, you can use the default ones as shown in the image below.
37+
Follow the prompts and accept the defaults:
3638

37-
![Login to GitHub](./images/gh-auth.png)
39+
![Login to GitHub alt-text#center](./images/gh-auth.png "Screenshot of GitHub authentication prompt")
3840

39-
{{% notice %}}
40-
If you get an error opening the browser on your virtual machine, you can navigate to the following URL on the host machine.
41+
{{% notice Note %}}
42+
If you get an error opening the browser on your virtual machine, you can navigate to the following URL on the host machine and enter the device code displayed in the CLI of the virtual machine:
4143
```
4244
https://github.com/login/device
4345
```
44-
From there, you can enter the code displayed in the CLI of the virtual machine.
4546
{{% /notice %}}
4647

47-
If the log in was successful, you will see the following confirmation in your browser window.
48+
When authentication succeeds, you will see a confirmation screen in your browser:
4849

49-
![GitHub UI](./images/login-page.png)
50+
![GitHub UIalt-text#center](./images/login-page.png "Screenshot of successful GitHub login confirmation")
5051

51-
### Test GitHub CLI and Git
52+
## Test GitHub CLI and Git
5253

53-
The command below creates a new public GitHub repository named **test-repo** using the GitHub CLI. It sets the repository visibility to public, meaning anyone can view it
54+
The command below creates a new public GitHub repository named `test-repo` using the GitHub CLI. It sets the repository visibility to public, meaning that anyone can view it:
5455

5556
```console
5657
gh repo create test-repo --public
@@ -59,66 +60,65 @@ You should see an output similar to:
5960
```output
6061
✓ Created repository <your-github-account>/test-repo on GitHub
6162
https://github.com/<your-github-account>/test-repo
62-
```
63+
```
6364

6465

65-
### Configure the Self-Hosted Runner
66+
## Configure the self-hosted runner
6667

67-
* Go to your repository's **Settings > Actions**, and under the **Runners** section
68-
* Click on **Add Runner** or view existing self-hosted runners.
68+
In your repository, go to **Settings****Actions****Runners** and select **Add runner**, or view existing self-hosted runners.
6969

70-
{{% notice Note %}}
71-
If the **Actions** tab is not visible, ensure Actions are enabled by navigating to **Settings > Actions > General**, and select **Allow all actions and reusable workflows**.
72-
{{% /notice %}}
70+
{{% notice Note %}}
71+
If the **Actions** tab is not visible, enable Actions under **Settings****Actions****General** by selecting **Allow all actions and reusable workflows**.
72+
{{% /notice %}}
7373

74-
![runner](./images/newsh-runner.png)
74+
![runner alt-text#center](./images/newsh-runner.png "Screenshot of repository Runners settings page")
7575

76-
Then, click on the **New self-hosted runner** button. In the **Add new self-hosted runner** section. Select Linux for the operating system, and choose ARM64 for the architecture. This will generate commands to set up the runner. Copy and run them on your Google Axion C4A virtual machine.
76+
Click **New self-hosted runner**. In the setup panel, choose `Linux` as the operating system and `ARM64` as the architecture. Copy the generated setup commands and run them on your C4A VM.
77+
78+
![new-runner alt-text#center](./images/new-runner.png "Screenshot of the Add new self-hosted runner panel")
7779

78-
![new-runner](./images/new-runner.png)
80+
The final command links the runner to your GitHub repository using a one-time registration token.
81+
During setup, you will be prompted for the runner group, runner name, and work folder. Press **Enter** at each prompt to accept the defaults. The output should look similar to:
7982

80-
The final command links the runner to your GitHub repo using a one-time registration token.
83+
```output
84+
--------------------------------------------------------------------------------
85+
| ____ _ _ _ _ _ _ _ _ |
86+
| / ___(_) |_| | | |_ _| |__ / \ ___| |_(_) ___ _ __ ___ |
87+
| | | _| | __| |_| | | | | '_ \ / _ \ / __| __| |/ _ \| '_ \/ __| |
88+
| | |_| | | |_| _ | |_| | |_) | / ___ \ (__| |_| | (_) | | | \__ \ |
89+
| \____|_|\__|_| |_|\__,_|_.__/ /_/ \_\___|\__|_|\___/|_| |_|___/ |
90+
| |
91+
| Self-hosted runner registration |
92+
| |
93+
--------------------------------------------------------------------------------
8194
82-
During the command’s execution, you will be prompted to provide the runner group, the name of the runner, and the work folder name. You can accept the defaults by pressing **Enter** at each step. The output will resemble as below:
95+
# Authentication
8396
84-
```output
85-
--------------------------------------------------------------------------------
86-
| ____ _ _ _ _ _ _ _ _ |
87-
| / ___(_) |_| | | |_ _| |__ / \ ___| |_(_) ___ _ __ ___ |
88-
| | | _| | __| |_| | | | | '_ \ / _ \ / __| __| |/ _ \| '_ \/ __| |
89-
| | |_| | | |_| _ | |_| | |_) | / ___ \ (__| |_| | (_) | | | \__ \ |
90-
| \____|_|\__|_| |_|\__,_|_.__/ /_/ \_\___|\__|_|\___/|_| |_|___/ |
91-
| |
92-
| Self-hosted runner registration |
93-
| |
94-
--------------------------------------------------------------------------------
95-
96-
# Authentication
97-
98-
√ Connected to GitHub
99-
# Runner Registration
100-
Enter the name of the runner group to add this runner to: [press Enter for Default]
101-
Enter the name of runner: [press Enter for lpprojectubuntuarm64]
102-
This runner will have the following labels: 'self-hosted', 'Linux', 'ARM64'
103-
Enter any additional labels (ex. label-1,label-2): [press Enter to skip]
104-
√ Runner successfully added
105-
√ Runner connection is good
106-
```
97+
√ Connected to GitHub
98+
# Runner Registration
99+
Enter the name of the runner group to add this runner to: [press Enter for Default]
100+
Enter the name of runner: [press Enter for lpprojectubuntuarm64]
101+
This runner will have the following labels: 'self-hosted', 'Linux', 'ARM64'
102+
Enter any additional labels (ex. label-1,label-2): [press Enter to skip]
103+
√ Runner successfully added
104+
√ Runner connection is good
105+
```
107106

108-
Finally, start the runner by executing:
109-
```console
110-
./run.sh
111-
```
112-
You should see an output similar to:
107+
Finally, start the runner by executing:
108+
```console
109+
./run.sh
110+
```
111+
You should see an output similar to:
113112

114-
```output
115-
√ Connected to GitHub
113+
```output
114+
√ Connected to GitHub
116115
117-
Current runner version: '2.326.0'
118-
2025-07-15 05:51:13Z: Listening for Jobs
119-
```
120-
The runner will now be visible in the GitHub actions:
116+
Current runner version: '2.326.0'
117+
2025-07-15 05:51:13Z: Listening for Jobs
118+
```
119+
The runner will now be visible in the GitHub actions:
120+
121+
![final-runner alt-text#center](./images/final-runner.png "Screenshot of runner visible in GitHub")
121122

122-
![final-runner](./images/final-runner.png)
123+
For now, you can terminate the `./run.sh` command with `Ctrl+C`. Move on to the next section to set up a simple web server using the runner.
123124

124-
For now, you can terminate the `./run.sh` command with `Ctrl+C`. Move on to the next section to set up a simple web server using the runner.

content/learning-paths/servers-and-cloud-computing/github-on-arm/instance.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,30 @@ weight: 3
66
layout: learningpathall
77
---
88

9-
## Introduction
9+
## Overview
1010

11-
This section walks you through creating **Google Axion C4A Arm virtual machine** on GCP with the **c4a-standard-4 (4 vCPUs, 16 GB Memory)** machine type, using the **Google Cloud Console**.
11+
This section walks you through creating a Google Axion C4A Arm virtual machine on Google Cloud with the `c4a-standard-4` (4 vCPUs, 16 GB memory) machine type using the Google Cloud Console. You will use this VM later as the host for a GitHub Actions self-hosted runner.
1212

13-
If you haven't got a Google Cloud account, you can follow the Learning Path on [Getting Started with Google Cloud Platform](https://learn.arm.com/learning-paths/servers-and-cloud-computing/csp/google/) to get started.
13+
If you don't have a Google Cloud account, see the Learning Path [Getting started with Google Cloud Platform](https://learn.arm.com/learning-paths/servers-and-cloud-computing/csp/google/).
1414

15-
### Create an Arm-based Virtual Machine (C4A)
15+
## Create an Arm-based virtual machine (C4A)
1616

17-
To create a virtual machine based on the C4A Arm architecture:
18-
1. Open the [Google Cloud Console](https://console.cloud.google.com/).
19-
2. Navigate to the card **Compute Engine** and click on **Create Instance**.
20-
3. Under the **Machine Configuration**:
21-
- Fill in basic details like **Instance Name**, **Region**, and **Zone**.
22-
- Choose the **Series** as `C4A`.
23-
- Select a machine type such as `c4a-standard-4`.
24-
![Instance Screenshot](./images/select-instance.png)
25-
4. Under the **OS and Storage**, click on **Change**, pick **Ubuntu** as the Operating System with **Ubuntu 24.04 LTS Minimal** as the Version. Make sure you pick the version of image for Arm.
26-
5. Under **Networking**, enable **Allow HTTP traffic** to test workloads like NGINX later.
27-
6. Click on **Create**, and the instance will launch.
17+
Follow these steps in the Google Cloud Console:
18+
19+
- Open the [Google Cloud Console](https://console.cloud.google.com/).
20+
- Go to **Navigation menu ▸ Compute Engine ▸ VM instances**, then select **Create instance**.
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`
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+
- Under **Networking**, enable **Allow HTTP traffic** so you can test workloads like NGINX later.
27+
- Select **Create** to launch the instance.
28+
29+
![Google Cloud Console page showing C4A VM creation with c4a-standard-4 selectedalt-text#center](./images/select-instance.png "Create a C4A VM in the Google Cloud Console")
2830

2931
{{% notice Important %}}
30-
You should not enable the **Allow HTTP traffic** permanently, since this poses a security risk. For the long-term, you should only allow traffic from the IP address you use to connect to the instance.
32+
Do not leave **Allow HTTP traffic** enabled permanently. For long-term use, allow traffic only from the IP addresses you use to connect to the instance.
3133
{{% /notice %}}
3234

33-
You can access the Google Cloud Console by clicking the **SSH** button in the instance overview. Use this command line interface (CLI) to run the commands in the remainder of this Learning Path.
35+
Access the VM from the instance list by selecting **SSH** in the instance overview. Use this command line interface (CLI) to run the commands in the remainder of this Learning Path.

0 commit comments

Comments
 (0)