Adding script in the build pipeline
- A script can be added before the build and post the build-and-push process.
-
To do this edit your
truefoundryhelm chart and configure the section of thetfyBuild.truefoundryWorkflows.preBuildandtfyBuild.truefoundryWorkflows.postBuild -
Following is an example
Running time-intensive task
Each build pipeline is allowed to run for max 14400 seconds post which the build will be declared as failed. User needs to ensure that the pre-build and post-build steps don’t exceed the given time. Each step in itself is allowed to run for max 5400 seconds.-
Each step can refer to few inputs -
- Build Source -
{{inputs.parameters.buildSource}} - Build config -
{{inputs.parameters.buildConfig}} - Docker registry URL -
{{inputs.parameters.dockerRegistryURL}} - Docker registry username -
{{inputs.parameters.dockerRegistryUsername}} - Docker registry password -
{{inputs.parameters.dockerRegistryPassword}} - Docker image repository -
{{inputs.parameters.dockerRepo}} - Docker image tag -
{{inputs.parameters.dockerTag}}
- Build Source -
-
An example of using this -