mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore(gitlab): upgrade package-based instance
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user