Using SWR Public Images
Prerequisites
You have created an image and pushed it to SWR.
Setting Image Type to Public
- Log in to .
- In the navigation pane, choose My Images, click the image name to go to the image details page, and click Edit in the upper right corner.
- In the dialog box, set the type to be public.
- To obtain the complete image path, click
to copy the image download command. The part following docker pull is the image path.
Graphical Build
- Add Use SWR Public Image, when configuring build actions.
- Paste the image address obtained in 4 to the Image Address text box.
When pasting the download command to the image address text box, delete docker pull.
- Enter the build commands in the command window.
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.
Code-based Build
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. The image address can be in any of the following formats:
| Yes | None |
| command | String | Commands to be run. 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 |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot
