Skip to content
Snippets Groups Projects
Commit d7c66c5f 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
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