Skip to content

Specifying The Runner Image

vzakaznikov edited this page Jan 23, 2024 · 3 revisions

By default, the default image of the server for the runner is ubuntu-22.04. You can use the --default-image option to force a specific default server image.

You can also use the image-{architecture}-{type}-{name} runner label to specify the server image for a specific job.

Where,

  • {architecture} is either x86 or arm
  • {type} is either system, snapshot, backup, or app
  • {name} must be a valid Hetzner Cloud image name, for system or app type, such as ubuntu-22.04, or a description, for backup or snapshot type.

For example,

ubuntu-20.04:
job-name:
   runs-on: [self-hosted, type-cx11, in-ash, image-x86-system-ubuntu-20.04]
docker-ce app:
job-name:
   runs-on: [self-hosted, type-cx11, in-ash, image-x86-app-docker-ce]
snapshot:

For snapshots, specify description as the name. Snapshot descriptions must be unique.

job-name:
   runs-on: [self-hosted, type-cx11, in-ash, image-x86-snapshot-snapshot_description]

Clone this wiki locally