diff options
author | Sarah German <sgerman@gitlab.com> | 2022-10-05 23:52:38 +0300 |
---|---|---|
committer | Sarah German <sgerman@gitlab.com> | 2022-10-05 23:52:38 +0300 |
commit | ff2c739b8d914ccec43252ba5c35036191b647a3 (patch) | |
tree | f79bce6707dd089c46943ce36d3cf4232f443f12 | |
parent | c4a9771acd9d332cbd6ae6749e8b10e9b1cc6e32 (diff) | |
parent | f1674c17d47f55544cb951788c71799631a6cb7f (diff) |
Merge branch 'axil-move-image-single-test' into 'main'
Move step of single image test to the release MR
See merge request https://gitlab.com/gitlab-org/gitlab-docs/-/merge_requests/3157
Merged-by: Sarah German <sgerman@gitlab.com>
Approved-by: Sarah German <sgerman@gitlab.com>
Co-authored-by: Achilleas Pipinellis <axil@gitlab.com>
-rw-r--r-- | doc/releases.md | 5 | ||||
-rw-r--r-- | lib/tasks/release.rake | 11 |
2 files changed, 5 insertions, 11 deletions
diff --git a/doc/releases.md b/doc/releases.md index 1b024a73..8b000a11 100644 --- a/doc/releases.md +++ b/doc/releases.md @@ -166,11 +166,14 @@ To create the release merge request for the release: ``` 1. Edit `latest.Dockerfile` by removing the oldest version, and then adding the newest version to the top of the list. +1. Open [`.gitlab/ci/docker-images.gitlab-ci.yml`](../.gitlab/ci/docker-images.gitlab-ci.yml) + and edit the `test:image:docs-single:` job to change the `GITLAB_VERSION` variable. + Set it to the version number of the release you're releasing. 1. Commit and push to create the merge request. For example: ```shell - git add content/_data/versions.yaml content/versions.json latest.Dockerfile + git add .gitlab/ci/docker-images.gitlab-ci.yml content/_data/versions.yaml content/versions.json latest.Dockerfile git commit -m "Release 15.0" git push origin release-15-0 ``` diff --git a/lib/tasks/release.rake b/lib/tasks/release.rake index fb3fea4d..7e400000 100644 --- a/lib/tasks/release.rake +++ b/lib/tasks/release.rake @@ -47,17 +47,8 @@ namespace :release do post.puts content end - # Update GitLab version variable in .gitlab/ci/docker-images.gitlab-ci.yml - ci_yaml = ".gitlab/ci/docker-images.gitlab-ci.yml" - ci_yaml_content = File.read(ci_yaml) - ci_yaml_content.gsub!(/GITLAB_VERSION: \S+/, "GITLAB_VERSION: '#{version}'") - - File.open(ci_yaml, 'w') do |post| - post.puts ci_yaml_content - end - # Add and commit - `git add .gitlab/ci/docker-images.gitlab-ci.yml #{version}.Dockerfile` + `git add #{version}.Dockerfile` `git commit -m 'Release cut #{version}'` puts "\n#{TaskHelpers::COLOR_CODE_GREEN}INFO: Created new Dockerfile:#{TaskHelpers::COLOR_CODE_RESET} #{dockerfile}." |