-
Notifications
You must be signed in to change notification settings - Fork 5
Specifying The Custom Runner Server Startup Script
You can specify a custom runner server startup script using the --scripts option which can be used to specify a path to the folder that contains all your custom runner server scripts.
For example, you can create a local folder called scripts and add your custom startup-x64.sh and startup-arm64.sh that will overwrite the default startup-x64.sh and startup-arm64.sh scripts that are defined in testflows/github/hetzner/runners/scripts/startup-x64.sh and testflows/github/hetzner/runners/scripts/startup-x64.sh.
mkdir scripts
Then, inside the scripts folder you can place your custom setup-x64.sh and setup-arm64.sh scripts.
You can apply your custom scripts using the --scripts option as follows:
github-hetzner-runners --scripts ./scripts
The default server startup script is startup-x64.sh for the x64 architecture and startup-arm64.sh for the ARM64 architecture. However, you can use the startup-{name} label to select any custom script inside the scripts directory that you can specify using the --scripts option. Where the {name} shall match the {name}.sh file inside the scripts folder.
✋ Note: | Note the .sh extension is assumed for the script {name}. |
---|
For example,
scripts/
scripts/custom.sh
job-name:
runs-on: [self-hosted, startup-custom]
Developed and maintained by the TestFlows team.
- Home
- Installation
- Quick Start
- Getting Started Tutorial
- Basic Configuration
- Specifying the Maximum Number of Runners
- Specifying the Maximum Number of Runners Used in Workflow a Run
- Recycling Powered‐Off Servers
- Skipping Jobs
- Using Custom Label Prefix
- Jobs That Require the Docker Engine
- Specifying The Runner Type
- Specifying The Runner Location
- Specifying The Runner Image
- Specifying The Custom Runner Server Setup Script
- Specifying The Custom Runner Server Startup Script
- Disabling Setup or Startup Scripts
- Specifying Standby Runners
- Specifying Logger Configuration
- Listing All Current Servers
- Opening The SSH Client To The Server
- Deleting All Runners and Their Servers
- Using a Configuration File
- Specifying SSH Key
- Specifying Additional SSH Keys
- Running as a Service
- Running as a Cloud Service
- Scaling Up Runners
- Scaling Down Runners
- Handling Failing Conditions
- Meta Labels
- Estimating Costs
- Listing Images
- Deleting Images
- Creating Custom Images
- Program Options