debian-mirror-gitlab/lib/api/entities/ci/job_request/image.rb
2022-07-23 20:15:48 +02:00

16 lines
368 B
Ruby

# frozen_string_literal: true
module API
module Entities
module Ci
module JobRequest
class Image < Grape::Entity
expose :name, :entrypoint
expose :ports, using: Entities::Ci::JobRequest::Port
expose :pull_policy, if: ->(_) { ::Feature.enabled?(:ci_docker_image_pull_policy) }
end
end
end
end
end