4.6.3. new-build
根据当前 Git 存储库中的源代码(具有公共远程)和容器镜像创建构建配置:
oc new-build .
$ oc new-build .
基于远程 git 存储库创建构建配置:
oc new-build https://github.com/sclorg/cakephp-ex
$ oc new-build https://github.com/sclorg/cakephp-ex
基于私有远程 git 存储库创建构建配置:
oc new-build https://github.com/youruser/yourprivaterepo --source-secret=yoursecret
$ oc new-build https://github.com/youruser/yourprivaterepo --source-secret=yoursecret