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

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

parent cbb924ec
No related branches found
No related tags found
No related merge requests found
Pipeline #24066930 passed
Loading
Loading
@@ -123,5 +123,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