Fix: Set the ruby version for images 21/6821/2
authorKevin Sandi <ksandi@contractor.linuxfoundation.org>
Tue, 5 Oct 2021 22:05:31 +0000 (16:05 -0600)
committerKevin Sandi <ksandi@contractor.linuxfoundation.org>
Tue, 5 Oct 2021 22:15:54 +0000 (16:15 -0600)
Ruby gem package_cloud doesn't support ruby 3.X, so we have to
hardcode it to the previous version where jobs were working
properly

Signed-off-by: Kevin Sandi <ksandi@contractor.linuxfoundation.org>
Change-Id: I992ebbff900fafd27bf233578552cfc00721a469

packer/provision/local-docker.yaml

index d82a48d..cc93c3d 100644 (file)
@@ -23,6 +23,8 @@
         ruby_install_bundler: false
         ruby_install_from_source: true
         ansible_become: true
+        ruby_download_url: http://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.1.tar.gz
+        ruby_version: 2.5.1
 
     - name: 'Install PackageCloud'
       command: 'gem install package_cloud'