Welcome to mirror list, hosted at ThFree Co, Russian Federation.

image.rb « job_request « ci « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 83f64da605023c786da3d3e0ccdd3ce2b17bc86a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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