Skip to content
Snippets Groups Projects
Commit 2cc9a785 authored by Kamil Trzcińśki's avatar Kamil Trzcińśki
Browse files

Properly create deployment using all possible options

parent 08272ec1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -79,13 +79,14 @@ module Ci
 
after_transition any => [:success] do |build|
if build.environment.present?
service = CreateDeploymentService.new(build.project, build.user,
environment: build.environment,
sha: build.sha,
ref: build.ref,
tag: build.tag,
options: build.options[:environment],
variables: variables)
service = CreateDeploymentService.new(
build.project, build.user,
environment: build.environment,
sha: build.sha,
ref: build.ref,
tag: build.tag,
options: build.options[:environment],
variables: variables)
service.execute(build)
end
end
Loading
Loading
Loading
Loading
@@ -15,6 +15,15 @@ module Ci
expose :filename, :size
end
 
class BuildOptions < Grape::Entity
expose :image
expose :services
expose :artifacts
expose :cache
expose :dependencies
expose :after_script
end
class Build < Grape::Entity
expose :id, :ref, :tag, :sha, :status
expose :name, :token, :stage
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment