os-build v3.0.1
os-build
A utility for building projects in OpenShift.
Installing
npm install os-buildEnvironment
DEBUG- Enables debug logging. (For more information, see debug)
Commands
clean- Cleans any images created by the build.clone- Clones the source code to a pod.build- Performs a build of the source code.runtime-build- Performs a runtime container build.tag- Tags the runtime image.
Usage
os-build \
--command clone \
--namespace lab \
--registry 172.30.53.244:5000 \
--api-server https://10.2.2.2:8443 \
--token $(oc whoami -t) \
--repo https://github.com/github1/smerge.git \
--build-name smerge \
--build-number 4build.yaml
The build.yaml file informs the builder how to perform the build for the project. If a build.yaml file is present in the projects source code it will take precedence. Attributes which are not present are loaded from templates based on the detected platform for the project - e.g. the nodejs platform defaults will take effect if a package.json is found in the project.
Commands executed during builds can be set by overriding individual properties in the project specific build.yaml:
platform: nodejs
builder:
install: npm run install && npm run some-taskLicense
MIT
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago