RELEASE_PROCESS.md
Podman (and podman-remote) versioning is mostly based on semantic-versioning
standards.
Significant versions
are tagged, including release candidates (rc).
All relevant minor releases (vX.Y) have their own branches. The latest
development efforts occur on the main branch. Branches with a
rhel suffix are use for long-term support of downstream RHEL releases.
git operations and concepts, like creating commits,
local vs. remote branches, rebasing, and conflict resolution.Upstream major or minor releases occur the 2nd week of February, May, August, November. Branching and RC's may start several weeks beforehand. Patch releases occur as-needed.
These releases always begin from main, and are contained in a branch
named with the major and minor version. Major release branches
begin in a release candidate phase, with prospective release tags being
created with an -rc suffix. There may be multiple release candidate
tags before the final/official major version is tagged and released.
Significant minor and patch level releases are normally
branched from main, but there are occasional exceptions.
Additionally, these branches may be named with -rhel (or another)
suffix to signify a specialized purpose. For example, -rhel indicates
a release intended for downstream RHEL consumption.
Non-release versions may occasionally appear tagged on a branch, without the typical (major) receive media postings or artifact distribution. For example, as required for the (separate) RHEL release process. Otherwise these tags are simply milestones of reference purposes and may generally be safely ignored.
Note: This is intended as a guideline, and generalized process. Not all steps are applicable in all situations. Not all steps are spelled with complete minutiae.
Create a new upstream release branch (if none already exist).
git remote update). Switch to this branch (git checkout upstream/main).git checkout -b vX.Y. Where X.Y represent the complete release
version-name, including any suffix (if any) like -rhel. DO NOT
include any -rc suffix in the branch name.git push upstream vX.Y).podman-machine-os repo.
If so, repeat above steps for podman-machine-os.Create a new local working-branch to develop the release PR
git remote update).upstream/main or the correct upstream branch.
Example: git checkout -b bump_vX.Y.Z --no-track upstream/vX.YCompile release notes.
Ensure any/all intended PR's are completed and merged prior to any processing of release notes.
Find all commits since the last release. There is a script, /hack/branch_commits.rb
that is helpful for finding all commits in one branch, but not in another,
accounting for cherry-picks. Commits in base branch that are not in
the old branch will be reported. ruby branch_commits.rb upstream/main upstream/vX.Y
Keep this list open/available for reference as you edit.
Edit RELEASE_NOTES.md
Add/update the version-section of with sub-sections for Features
(new functionality), Changes (Altered podman behaviors),
Bugfixes (self-explanatory), API (All related features,
changes, and bugfixes), and Misc (include any major
library bumps, e.g. c/buildah, c/storage, c/common, etc).
Use your merge-bot reference PR-listing to examine each PR in turn, adding an entry for it into the appropriate section.
Use the list of commits to find the PR that the commit came from. Write a release note if needed.
Commit the RELEASE_NOTES.md changes, using the description
Create release notes for vX.Y.Z (where X, Y, and Z are the
actual version numbers).
Open a Release Notes PR, or include this commit with the version bump PR.
Update version numbers and push tag
version/rawversion/version.go and bump the Version value to the new
release version. If there were API changes, also bump APIVersion value.
Make sure to also bump the version in the swagger.yaml pkg/api/server/docs.gogit commit -a -s -S). The commit message
should be Bump to vX.Y.Z (using the actual version numbers).do-not-merge/wait-machine-os-build label until the images are built
and published.podman-machine-os bump PR, by clicking the link in the comment, or by finding it in the podman-machine-os repo.
podman-machine-os bump PRpodman-machine-os bump commit with the same version as the podman release. (git tag -s -m 'vX.Y.Z' vX.Y.Z)release
GitHub Actions workflow. It publishes the images to Quay and creates a
GitHub release in the podman-machine-os repository. Wait for this
workflow to complete successfully.do-not-merge/wait-machine-os-build label should be automatically
un-set once the podman-machine-os release is finished.Bump to vX.Y.Z commit as a release by running
git tag -s -m 'vX.Y.Z' vX.Y.Z $HASH where $HASH is specified explicitly and carefully, to avoid (basically) unfixable accidents
(if they are pushed).git push upstream vX.Y.ZMonitor release automation
Verify release testing is proceeding
Release workflow and ensure that all required jobs
complete successfully.Announce the release