Install gitlab-dangerfiles gem via gem command required in Rakefile

This commit is contained in:
Pirate Praveen 2022-06-27 17:03:19 +05:30
parent f4af2127d0
commit 8dccc823be
No known key found for this signature in database
GPG key ID: 8F53E0193B294B75

View file

@ -64,6 +64,8 @@ export GEM_PATH=$(gem env gempath)
# Updating these rubygem packages are complicated
runuser -u ${gitlab_user} -- sh -c "if ! gem list -i -v 1.8.0 "^graphiql-rails$" >/dev/null; then gem install -v 1.8.0 graphiql-rails; fi"
# gitlab-dangerfiles is required in Rakefile and has many dependencies
runuser -u ${gitlab_user} -- sh -c "if ! gem list -i "^gitlab-dangerfiles$" >/dev/null; then gem install gitlab-dangerfiles; fi"
#######################################################################
# update Gemfile.lock and yarn.lock, always