Class: Fastlane::Actions::DockerPushAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/docker/actions/docker_push.rb

Class Method Summary collapse

Class Method Details

.authorsObject



24
25
26
# File 'lib/fastlane/plugin/docker/actions/docker_push.rb', line 24

def self.authors
  ["milch"]
end

.available_optionsObject



13
14
15
16
17
18
19
20
21
22
# File 'lib/fastlane/plugin/docker/actions/docker_push.rb', line 13

def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :repository,
                                 description: "The repository to upload",
                                 default_value: Actions.lane_context[SharedValues::DOCKER_BUILT_REPO]),
    FastlaneCore::ConfigItem.new(key: :tag,
                                 description: "The tag to upload",
                                 default_value: Actions.lane_context[SharedValues::DOCKER_BUILT_TAG])
  ]
end

.descriptionObject



9
10
11
# File 'lib/fastlane/plugin/docker/actions/docker_push.rb', line 9

def self.description
  "Push a docker image to its' repository"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/fastlane/plugin/docker/actions/docker_push.rb', line 28

def self.is_supported?(platform)
  true
end

.run(params) ⇒ Object



4
5
6
7
# File 'lib/fastlane/plugin/docker/actions/docker_push.rb', line 4

def self.run(params)
  UI.message "Pushing docker image..."
  DockerClient.new.push(params[:repository], tag: params[:tag])
end