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

service.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: 7d494c7e516491afc55e47f887243f2a917931a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module API
  module Entities
    module Ci
      module JobRequest
        class Service < Grape::Entity
          expose :name, :entrypoint
          expose :ports, using: Entities::Ci::JobRequest::Port

          expose :pull_policy, if: ->(_) { ::Feature.enabled?(:ci_docker_image_pull_policy) }
          expose :alias, :command
          expose :variables
        end
      end
    end
  end
end