docker build with a Dockerfile to produce a runnable image.

- where the source lives (git repo, binary, or other),
- which build strategy to use (source-to-image, Dockerfile, or pipeline),
- where the resulting image should be pushed (ImageStream or external registry),
- triggers that automatically start builds (GitHub, generic webhooks, image changes),
- and any post-build steps (tests or scripts).
BuildConfigs are often generated automatically (for example, when importing an application image, using the web console, or certain CLI workflows). You do not always need to author them by hand, but understanding the fields helps you customize and automate builds.
- A build is the process that turns source code into a runnable container image.
- A BuildConfig is the declarative definition of that process: it specifies the source, strategy, output, triggers, and post-build steps that orchestrate the build lifecycle.
- Build strategies determine how the image is created (S2I, Dockerfile, or pipelines). The sample above uses a
sourceStrategyreferencing anImageStreamTag.
Be careful with webhook secrets embedded in BuildConfig YAML (the sample uses
secret101). Treat webhook and registry secrets as sensitive: store them securely and rotate them regularly. Prefer using OpenShift Secrets and secure automation to avoid exposing credentials in plain YAML.- OpenShift Builds — Understanding Builds and BuildConfigs
- Source-to-Image (S2I) Overview
docker buildreference