chore(gitlab): upgrade package-based instance

This commit is contained in:
Michele Cereda
2024-08-22 19:51:50 +02:00
parent 185be94456
commit 4f95870c33
5 changed files with 26 additions and 1 deletions

View File

@@ -33,3 +33,5 @@ gitlab-runner list -c '/etc/gitlab-runner/config.toml'
gitlab-runner verify -c '/etc/gitlab-runner/config.toml'
# Also delete runners that have been removed from the main instance
gitlab-runner verify … --delete
diff -y <(helm show values 'gitlab/gitlab-runner' --version '0.64.2') <(helm show values 'gitlab/gitlab-runner' --version '0.68.1')

View File

@@ -103,6 +103,14 @@ sudo gitlab-ctl backup-etc \
| head -n '1' \
| xargs -pI '{}' aws s3 cp '/etc/gitlab/config_backup/'{} 's3://backups/gitlab/'
# Put the instance in maintenance mode
sudo gitlab-rails runner '
::Gitlab::CurrentSettings.update!(maintenance_mode: true);
::Gitlab::CurrentSettings.update!(maintenance_mode_message: "New message");
'
# Take the instance out of maintenance mode
sudo gitlab-rails runner '::Gitlab::CurrentSettings.update!(maintenance_mode: false);'
# Package upgrade
sudo yum check-update
sudo yum info 'gitlab-ee' # informational