How to automate Gitlab version upgrade in Rhel

Hi,
Please help me with automation ,upgrade of Gitlab in RHEl AWS Ec2

Thanks

If the yum repo has not been setup then run this:
gitlab/gitlab-ee - Installation ยท packages.gitlab.com- Bash Scripts

Once that is installed you should be able to do a yum update