源路径可以是指定镜像内的任何绝对路径。目的地必须是相对目录路径。构建时会加载镜像,并将指定的文件和目录复制到构建过程上下文目录中。这与源存储库内容(若有)要克隆到的目录相同。如果源路径以 /. 结尾,则复制目录的内容,但不在目的地上创建该目录本身。
source:
git:
uri: https://github.com/openshift/ruby-hello-world.git
images:
- from:
kind: ImageStreamTag
name: myinputimage:latest
namespace: mynamespace
paths:
- destinationDir: injected/dir
sourcePath: /usr/lib/somefile.jar
- from:
kind: ImageStreamTag
name: myotherinputimage:latest
namespace: myothernamespace
pullSecret: mysecret
paths:
- destinationDir: injected/dir
sourcePath: /usr/lib/somefile.jar
source:
git:
uri: https://github.com/openshift/ruby-hello-world.git
images:
1
- from:
2
kind: ImageStreamTag
name: myinputimage:latest
namespace: mynamespace
paths:
3
- destinationDir: injected/dir
4
sourcePath: /usr/lib/somefile.jar
5
- from:
kind: ImageStreamTag
name: myotherinputimage:latest
namespace: myothernamespace
pullSecret: mysecret
6
paths:
- destinationDir: injected/dir
sourcePath: /usr/lib/somefile.jar
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow