build

Build a Docker image
Arguments
working_directory
- The directory in which the build command is executed. It can be an explicit path in the container’s file system, or a variable that references another step. The default is ${{main_clone}}.
dockerfile
- The path to the Dockerfile from which the image is built. The default is Dockerfile.
no_cache
- Disable Docker engine cache for the build. more info
no_cf_cache
- Disable Codefresh build optimization for the build. more info
squash
-
image_name
- The name for the image you build.
build_arguments
- A set of Docker build arguments to pass to the build process.
tag
- The tag that is assigned to the image you build. The default is the name of the branch or revision that is built.
target
- target stage in a multistage build (build will run until this stage)
    version: '1.0'
steps:
  Docker-Build:
    title: Building docker image
    type: build
    arguments:
      image_name: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}'
      tag: master

  
github.comCodefresh INCJul 21, 2019source