Updated on 2024-04-03 GMT+08:00

Using YAML to Specify SWR Public Images

1
2
3
4
5
6
7
version: 2.0 # The value must be 2.0.
steps:
  BUILD:
    - swr:
       image: cloudbuild@ddd
       inputs:
          command: echo 'hello'

Parameter

Type

Description

Mandatory

Default Value

image

string

Image address.

Yes

None

command

string

Execute commands.

For example, if the image is used for a Maven build, configure commands for building with Maven. For an npm build, configure commands for building with npm. This rule also applies to other builds.

Yes

None