Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 653 Bytes

builds-strategy-docker-build-arguments.adoc

File metadata and controls

25 lines (20 loc) · 653 Bytes

Adding Docker build arguments

You can set Docker build arguments using the BuildArgs array. The build arguments will be passed to Docker when a build is started.

Procedure

To set Docker build arguments, add entries to the BuildArgs array, which is located in the dockerStrategy definition of the BuildConfig. For example:

dockerStrategy:
...
  buildArgs:
    - name: "foo"
      value: "bar"