更新时间:2024-04-03 GMT+08:00

使用yaml配置使用SWR公共镜像

1
2
3
4
5
6
7
version: 2.0 # 必须是2.0
steps:
  BUILD:
    - swr:
       image: cloudbuild@ddd
       inputs:
          command: echo 'hello'

参数名

参数类型

描述

是否必填

默认值

image

string

镜像地址

command

string

执行命令。

例如,若使用的镜像是用于Maven构建,则配置Maven构建命令,若使用的镜像是用于NPM构建,则配置NPM构建命令,以此类推。