Red Hat Training

A Red Hat training course is available for OpenShift Container Platform

4.6.3. new-build

根据当前 Git 存储库中的源代码(具有公共远程)和容器镜像创建构建配置:

$ oc new-build .

基于远程 git 存储库创建构建配置:

$ oc new-build https://github.com/sclorg/cakephp-ex

基于私有远程 git 存储库创建构建配置:

$ oc new-build https://github.com/youruser/yourprivaterepo --source-secret=yoursecret