Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.82 KB

File metadata and controls

29 lines (23 loc) · 1.82 KB

Releasing the plugin

To release the plugin the following steps are required:

  1. Checkout the branch you want to make the release from
  2. Determine what the next version should be
    • We try to follow semantic versioning (semver)
    • Usually we increase the major version only if we bumped the dependency on Foreman
    • For the rest we follow semver
  3. Bump the version in the version file - lib/foreman_rh_cloud/version.rb
  4. Bump the version in package.json
  5. Make a commit "Bump version to $version"
  6. Place a version tag on the commit with git tag $version -a -m "Bump version to $version"
    • Ideally the tag should be signed.
  7. Push the commit and the tag to the upstream repository with git push --follow-tags

When the tag is pushed to git, the release workflow should get triggered and should build the gem and push it to rubygems.org.

Once the new version lands in RubyGems, consider filing a packaging PR on foreman-packaging or triggering it via automation with:

gh workflow run bump_packages.yml \
  --repo theforeman/foreman-packaging \
  --raw-field package=foreman_rh_cloud

Note on permissions

The steps outlined above require write access to the repository. This is generally controlled by membership in the @theforeman/rh-cloud team. If needed, steps 1-5 can be done even without permissions. In that case, skip step 6, push the changes to your own fork and send us a pull request, asking for a maintainer to perform step 6.

A similar situation applies to the packaging workflow. It can be triggered (and resulting PRs merged) by members of the team. PRs can also be prepared by hand and sent by anyone.