Build an Image with Build Arguments

Using this repository we’ll help you get up to speed with basic functionality such as: building Docker images with build arguments. The build-arguments field uses the same logic as ARG in Dockerfile. For more information, see description of ARG

Looking around

In the root of this repository you’ll find a file named codefresh.yml, this is our build descriptor and it describes the different steps that comprise our process. Let’s quickly review the contents of this file.

codefresh.yml

stepname:
  type: build
  description: Free text description
  dockerfile: path/to/Dockerfile
  image_name: owner/new-image-name
  tag: develop
  build_arguments:
    - key=value
Example

Just head over to the example repository in Github and follow the instructions there.