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:
authorMarcel Amirault <mamirault@gitlab.com>2021-06-21 17:22:50 +0300
committerMarcel Amirault <mamirault@gitlab.com>2021-06-21 17:22:50 +0300
commitacabee16168074d9a4e915c74cb41cb68f4faf82 (patch)
treed16a43fd3e6af0f5413085df45098247035d40b6
parentb78e69185ec805331af57dff694a8f5e661ddb01 (diff)
Update runner default branch to main
The runner project changed the default branch to main, so we need to make sure we pull from main whenever we need to in the docs project
-rw-r--r--.gitlab-ci.yml2
-rw-r--r--Rakefile2
-rw-r--r--lib/helpers/edit_on_gitlab.rb4
3 files changed, 4 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 18ac7191..39f3988b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -30,7 +30,7 @@ stages:
variables:
BRANCH_EE: 'master'
BRANCH_OMNIBUS: 'master'
- BRANCH_RUNNER: 'master'
+ BRANCH_RUNNER: 'main'
BRANCH_CHARTS: 'master'
BUNDLE_PATH__SYSTEM: 'false'
GIT_DEPTH: '20'
diff --git a/Rakefile b/Rakefile
index ed52278b..677bdb21 100644
--- a/Rakefile
+++ b/Rakefile
@@ -115,7 +115,7 @@ namespace :release do
ci_yaml_content = File.read(ci_yaml)
ci_yaml_content.gsub!("BRANCH_EE: 'master'", "BRANCH_EE: '#{version.tr('.', '-')}-stable-ee'")
ci_yaml_content.gsub!("BRANCH_OMNIBUS: 'master'", "BRANCH_OMNIBUS: '#{version.tr('.', '-')}-stable'")
- ci_yaml_content.gsub!("BRANCH_RUNNER: 'master'", "BRANCH_RUNNER: '#{version.tr('.', '-')}-stable'")
+ ci_yaml_content.gsub!("BRANCH_RUNNER: 'main'", "BRANCH_RUNNER: '#{version.tr('.', '-')}-stable'")
ci_yaml_content.gsub!("BRANCH_CHARTS: 'master'", "BRANCH_CHARTS: '#{chart_version(version).tr('.', '-')}-stable'")
File.open(ci_yaml, 'w') do |post|
diff --git a/lib/helpers/edit_on_gitlab.rb b/lib/helpers/edit_on_gitlab.rb
index 97b4d62a..ea77df93 100644
--- a/lib/helpers/edit_on_gitlab.rb
+++ b/lib/helpers/edit_on_gitlab.rb
@@ -17,8 +17,8 @@ module Nanoc::Helpers
gitlab_ide_url = "https://gitlab.com/-/ide/project/gitlab-org/#{product}-gitlab/edit/master/-/doc/#{docs_content_filename}"
when "runner"
# gitlab-runner repo
- gitlab_url = "https://gitlab.com/gitlab-org/gitlab-#{product}/blob/master/docs/#{docs_content_filename}"
- gitlab_ide_url = "https://gitlab.com/-/ide/project/gitlab-org/gitlab-#{product}/edit/master/-/docs/#{docs_content_filename}"
+ gitlab_url = "https://gitlab.com/gitlab-org/gitlab-#{product}/blob/main/docs/#{docs_content_filename}"
+ gitlab_ide_url = "https://gitlab.com/-/ide/project/gitlab-org/gitlab-#{product}/edit/main/-/docs/#{docs_content_filename}"
when "charts"
# GitLab Helm chart repo
gitlab_url = "https://gitlab.com/gitlab-org/#{product}/gitlab/blob/master/doc/#{docs_content_filename}"