Skip to content
Snippets Groups Projects
Commit 8096bcbd authored by Matt Miller's avatar Matt Miller
Browse files

Merge branch 'mattmi/fix-cookbook-publish-on-ruby-3' into 'main'

Remove the cookbook-publisher lockfile if not running ruby 2.X

See merge request gitlab-com/gl-infra/common-ci-tasks!850
parents cbb924ec d7c66c5f
No related branches found
No related tags found
No related merge requests found
Pipeline #24067449 failed
Loading
Loading
@@ -116,6 +116,7 @@ push-cookbook:
only:
refs:
- master
- main
variables:
- "$OPS_CLONE_USERNAME"
- "$OPS_CLONE_PASSWORD"
Loading
Loading
@@ -123,5 +124,6 @@ push-cookbook:
- rm -rf Gemfile Gemfile.lock || true
- git clone https://$OPS_CLONE_USERNAME:$OPS_CLONE_PASSWORD@ops.gitlab.net/gitlab-cookbooks/cookbook-publisher.git /tmp/cookbook-publisher
- cp /tmp/cookbook-publisher/publisher.rb /tmp/cookbook-publisher/Gemfile /tmp/cookbook-publisher/Gemfile.lock .
- if [[ "$(ruby -v | awk '{print $2}')" =~ ^2 ]]; then echo "Using cookbook-publisher lockfile" ; else rm Gemfile.lock ; fi
- bundle install
- bundle exec ruby publisher.rb
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment