Automate Gitlab Upgrades

So i would like to automate gitlab upgrades via Ansible/AWX.

What i’m looking for right now is the best way to the following

  • pull Lastest release version from gitlab-ee
  • Get current gitlab install version.

Whats the best method for this is their an api tool to grab this?

Hi,

If you’ve installed using the Gitlab documentation and using the repositories for the rpm files (assuming RHEL) or deb packages under Debian/Ubuntu, then you can see if a gitlab update is available when using yum update or apt upgrade.

Current version you can get via api: Version API | GitLab or you can even just do an rpm -qa | grep -i gitlab to get version from the currently installed package.

1 Like