Building Nodes
About 296 wordsLess than 1 minute
When using cloud-native builds, you are essentially distributing build tasks to various build nodes
for execution. These nodes perform build tasks using a specified Docker image as the build environment.
Configuration Method
In the pipeline configuration, you can specify the pipeline.runner.tags
property to select different build nodes. By specifying the pipeline.runner.cpus
property, you can configure the maximum number of CPU
cores to be used. Cloud-native builds calculate the core-hours used by the pipeline by multiplying the actual allocated cores
by the pipeline's duration.
The official available build node tags
and configurable cpus
are as follows:
cnb:arch:amd64
represents a build node with anamd64
architecture CPU server.- Configurable
cpus
range: 1 ~ 64, default is 8.
- Configurable
cnb:arch:arm64:v8
represents a build node with anarm64/v8
architecture CPU server.- Configurable
cpus
range: 1 ~ 16, default is 8.
- Configurable
cnb:arch:amd64:gpu
represents a build node with anamd64
architecture GPU server, which can only be used for remote development.- The value of
cpus
is fixed at 32.
- The value of
cnb:arch:amd64:gpu:L20
represents a build node with anamd64
architecture GPU server, which can only be used for remote development.- The value of
cpus
is fixed at 16.
- The value of
PS: cnb:arch:default
represents the default build node, which is equivalent to cnb:arch:amd64
.
Example:
main:
push:
# Specify execution on an amd64 architecture build node
- runner:
tags: cnb:arch:amd64
stages:
- name: uname
script: uname -a
# Specify execution on an arm64/v8 architecture build node
- runner:
tags: cnb:arch:arm64:v8
stages:
- name: uname
script: uname -a
# Start a workspace for remote development with GPU access
$:
vscode:
- runner:
tags: cnb:arch:amd64:gpu
services:
- vscode