diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2017-04-26 15:57:44 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-04-26 15:57:44 +0000 |
commit | df85a7c00439f7a9636b6f46448336d76df7f7da (patch) | |
tree | d59481d95e0f8dfcc48a382ae3dd707b18e32e6a /lib | |
parent | 61afa9b5c45deccda81bddf33bb1cd6bc69280fd (diff) | |
download | gitlab-ce-df85a7c00439f7a9636b6f46448336d76df7f7da.tar.gz |
Submodule Dockerfile templates
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/template/dockerfile_template.rb | 4 | ||||
-rw-r--r-- | lib/tasks/gitlab/update_templates.rake | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/gitlab/template/dockerfile_template.rb b/lib/gitlab/template/dockerfile_template.rb index d5d3e045a42..20b054b0bd8 100644 --- a/lib/gitlab/template/dockerfile_template.rb +++ b/lib/gitlab/template/dockerfile_template.rb @@ -8,7 +8,7 @@ module Gitlab class << self def extension - 'Dockerfile' + '.Dockerfile' end def categories @@ -18,7 +18,7 @@ module Gitlab end def base_dir - Rails.root.join('vendor/dockerfile') + Rails.root.join('vendor/Dockerfile') end def finder(project = nil) diff --git a/lib/tasks/gitlab/update_templates.rake b/lib/tasks/gitlab/update_templates.rake index cb2adc81c9d..1b04e1350ed 100644 --- a/lib/tasks/gitlab/update_templates.rake +++ b/lib/tasks/gitlab/update_templates.rake @@ -5,7 +5,7 @@ namespace :gitlab do end def update(template) - sub_dir = template.repo_url.match(/([a-z-]+)\.git\z/)[1] + sub_dir = template.repo_url.match(/([A-Za-z-]+)\.git\z/)[1] dir = File.join(vendor_directory, sub_dir) unless clone_repository(template.repo_url, dir) @@ -45,7 +45,11 @@ namespace :gitlab do Template.new( "https://gitlab.com/gitlab-org/gitlab-ci-yml.git", /(\.{1,2}|LICENSE|CONTRIBUTING.md|Pages|autodeploy|\.gitlab-ci.yml)\z/ - ) + ), + Template.new( + "https://gitlab.com/gitlab-org/Dockerfile.git", + /(\.{1,2}|LICENSE|CONTRIBUTING.md|\.Dockerfile)\z/ + ), ].freeze def vendor_directory |