Wednesday, May 5, 2021

Updating gitlab-ee and gitlab-runner

 1. Download software
gitlab-ee
gitlab-runner

2. Copy software to repo server and create a repo
# cd /software/repo
createrepo

3. Check for update
# yum --enablerepo=* clean all
# yum search gitlab
# yum check-update

# yum versionlock list
# yum versionlock delete gitlab-ee gitlab-runner
# yum versionlick list

4. Update the software
# yum update -y
# yum versionlock add gitlab-ee gitlab-runner

-----------------------------------------------

$ eval $(ssh-agent)
$ ssh-add ~kamal/.ssh/id_rsa

$ ansible -i host-list all -o -a "rpm -q gitlab-ee" | grep CHANGED

This command lists all the systems which has gitlab-ee (Repo). You may have server on test and prod.

$ ansible -i host-list all -o -a "rpm -q gitlab-runner" | grep CHANGED

runner is a ci/cd program like Jinkins. You wil have couple of servers and need to update them as well.

Once you identify the list of servers, coordinate with developers/operation folks for downtime to implement the change.



No comments:

Post a Comment

Git branch show detached HEAD

  Git branch show detached HEAD 1. List your branch $ git branch * (HEAD detached at f219e03)   00 2. Run re-set hard $ git reset --hard 3. ...