kitchen-docker_cli icon indicating copy to clipboard operation
kitchen-docker_cli copied to clipboard

Add --tag to build options

Open Demonsthere opened this issue 9 years ago • 0 comments

Hey, would it be a problem to include the possibility to set image name for build parameter in the .kitchen.yml file?

      def docker_build_command
        cmd = String.new('build')
        cmd << ' --no-cache' if config[:no_cache]
        cmd << "--tag #{config[:image_name]}" if config[:image_name]
        if config[:build_context]
          cmd << ' .'
        else
          cmd << ' -'
        end
      end

Demonsthere avatar Aug 16 '16 09:08 Demonsthere