Build Node
About 198 wordsLess than 1 minute
When using Cloud Native Build, the essence is to dispatch build tasks to various build clusters for execution. The clusters execute the build tasks using the specified Docker image as the build environment.
Configuration Method
In the pipeline configuration, specify the pipeline.runner.tags property to select different build clusters. Specify the pipeline.runner.cpus property to configure the maximum number of CPU cores to be used.
Administrators can refer to the System Runner Configuration to add build cluster nodes and configure default tags for users to utilize.
Users may omit the tags property to use the build cluster under the default tag. If additional requirements exist, such as the need to use a arm64/v8 architecture build cluster, administrators can add build nodes of the corresponding architecture and configure the appropriate tags.
Example:
main:
push:
# Omit the tags property to use the build cluster under the default tag
- stages:
- name: uname
script: uname -a
# After the administrator configures the build cluster node and tag for the corresponding architecture, specify execution on an arm64/v8 architecture build cluster
- runner:
tags: cnb:arch:arm64:v8
stages:
- name: uname
script: uname -a