Skip to content

Latest commit

 

History

History
67 lines (51 loc) · 1.84 KB

RELEASING.md

File metadata and controls

67 lines (51 loc) · 1.84 KB

Releasing opsworks_ruby

Checklist

  1. Make changes
  2. Commit those changes
  3. Make sure Travis turns green
  4. Make sure Coverage remains 100%
  5. Bump version in package.json
  6. Bump version in metadata.rb
  7. Bump version in docs/source/config.py
  8. conventional-changelog -p angular -i CHANGELOG.md -s
  9. Commit all the things with chore: Version bump
  10. Tag version
  11. Push
  12. knife cookbook site share opsworks_ruby Applications

Solving problems with knife

In case of trouble, check Sharing Chef Cookbooks article. Short version:

WARNING: No knife configuration file found

$ knife cookbook site share opsworks_ruby Applications
WARNING: No knife configuration file found
ERROR: Chef::Exceptions::CookbookNotFoundInRepo: Cannot find a cookbook named dokku;
did you forget to add metadata to a cookbook? (http://wiki.opscode.com/display/chef/Metadata)

Solution:

% echo client_key \"#{ENV['HOME']}/.chef/client.pem\" >> ~/.chef/knife.rb
% cookbook_path \"#{ENV['HOME']}/Projects/cookbooks\" >> ~/.chef.knife.rb

ERROR: Errno::EACCES: Permission denied - /var/chef

% knife cookbook site share opsworks_ruby Applications
ERROR: Errno::EACCES: Permission denied - /var/chef

Solution:

% sudo chown -R $USER /var/chef

ERROR: Error uploading cookbook dokku to the Opscode Cookbook Site

% knife cookbook site share opsworks_ruby Applications
Generating metadata for dokku from /tmp/chef-opsworks_ruby-build20161021-18021-ypq6jp/opsworks_ruby/metadata.rb
Making tarball dokku.tgz
ERROR: Error uploading cookbook dokku to the Opscode Cookbook Site:
undefined method `strip' for nil:NilClass.
Set log level to debug (-l debug) for more information.`

Solution:

% echo node_name \"$USER\" >> ~/.chef/knife.rb