def image_tag(image, version: current_version_for_image(image))
      org       = settings.org
      project   = settings.project

      tag = "#{org}/#{project}-#{env}-#{image}"
      if !version.nil?
        version = version.to_i
        tag +=
          if version.negative?
            current_version = current_version_for_image(image)
            ":#{current_version.to_i + version}"
          else
            ":#{version}"
          end
      end

      tag
    end
def image_tag(image, version: current_version_for_image(image))
      org       = settings.org
      project   = settings.project

      tag = "#{org}/#{project}-#{env}-#{image}"
      if !version.nil?
        version = version.to_i
        tag +=
          if version.negative?
            current_version = current_version_for_image(image)
            ":#{current_version.to_i + version}"
          else
            ":#{version}"
          end
      end

      tag
    end
Generate the full tag for the given image, concatenating the org,
 project, env, image name, and version.

 Pass `version: nil` to exclude the version portion.

 @example
   image_tag("app") # => jutonz/dctl-dev-app:1