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

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2022-05-10 17:24:18 +0300
committerSarah German <sgerman@gitlab.com>2022-05-10 17:24:18 +0300
commit1d6e353acc9657522a445863a63fc715d6d676ab (patch)
tree55499cc1d33c40a075a2d57d8498b8a3ae5bbf54 /Rakefile
parentff79701b2b6ea0d0d61857f80a64da05b62460c3 (diff)
Put Dockerfile file extensions at end of each file
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index 0bc6e56b..39c8dbaf 100644
--- a/Rakefile
+++ b/Rakefile
@@ -89,13 +89,13 @@ namespace :release do
`git checkout -b #{version}`
# Replace the branches variables in Dockerfile.X.Y
- dockerfile = "#{source_dir}/Dockerfile.#{version}"
+ dockerfile = "#{source_dir}/#{version}.Dockerfile"
if File.exist?(dockerfile)
abort('rake aborted!') if ask("#{dockerfile} already exists. Do you want to overwrite?", %w[y n]) == 'n'
end
- content = File.read('dockerfiles/Dockerfile.single')
+ content = File.read('dockerfiles/single.Dockerfile')
content.gsub!('X.Y', version)
content.gsub!('X-Y', version.tr('.', '-'))
content.gsub!('W-Z', chart_version(version).tr('.', '-'))
@@ -117,7 +117,7 @@ namespace :release do
end
# Add and commit
- `git add .gitlab-ci.yml Dockerfile.#{version}`
+ `git add .gitlab-ci.yml #{version}.Dockerfile`
`git commit -m 'Release cut #{version}'`
puts