Skip to content
Snippets Groups Projects

Support for release key in gitlab-ci.yaml

Merged Sean Carroll requested to merge 26013-release-generation-from-within-gitlab-ci-yml-2 into master
All threads resolved!
6 files
+ 17
12
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -5,7 +5,7 @@ module Ci
class Config
module Entry
##
# Entry that represents a configuration of job artifacts.
# Entry that represents a configuration of release assets.
#
class Assets < ::Gitlab::Config::Entry::Node
include ::Gitlab::Config::Entry::Validatable
@@ -16,7 +16,6 @@ class Assets < ::Gitlab::Config::Entry::Node
attributes ALLOWED_KEYS
validations do
validates :config, type: Hash
validates :config, allowed_keys: ALLOWED_KEYS
validates :name, type: String
@@ -25,10 +24,6 @@ class Assets < ::Gitlab::Config::Entry::Node
validates :path, type: String
end
end
def value
@config.transform_values { |v| Array(v) }
end
end
end
end
Loading