Every release is tagged v<version>, such as v1.4.0-beta.1, and publishes the image with the tag 1.4.0-beta.1 on ghcr.io and Docker Hub.
Important
A push that changes release.json releases the version it sets, unless that version is released already. Run scripts/plan-version.sh first to see what a push releases.
| Branch | Takes | Releases |
|---|---|---|
main |
fixes, and next or a release branch for a new version |
stable versions |
next |
features | prereleases of the next minor or major |
release/v1.4 |
the minor 1.4, split off next so next can go on to 1.5 |
prereleases of 1.4.0 |
release/v2.0 |
the next major, cut from next |
prereleases of 2.0.0 |
v1.x |
backports, once main is on v2 |
stable 1.x versions |
v1.2.x |
backports and hotfixes, cut from the newest tag of v1.2 | stable 1.2.x versions |
maintakes fixes only. A new minor or major reaches it as a merge ofnextor a release branchnextand the release branches publish prereleases only, their stable versions are released onmain- Name a branch after what it changes:
fix/<topic>,feat/<topic>, andfix/<topic>-v1.2.2for a backport, after the version that releases it - Squash merge pull requests from contributors and pull requests with a single change, such as tool updates
- Merge everything else with a merge commit: team pull requests with several commits, backports,
next, the release branches andv1.3.xintomain - The merge forward workflow merges
mainintorelease/v1.4andnext, andrelease/v1.4intonext - While
mainis on 1.3,v1.1.xandv1.2.xare never merged into another branch - Delete
release/v1.4oncemainhas released1.4.0 - Delete
v1.3.xonce it is merged intomain - Delete
v1.1.xandv1.2.xonce their release is published, the next backport cuts them again from the newest tag
Caution
Never squash merge next or a release branch. Their commits stay unmerged and come back as conflicts in every later merge.
Note
next publishes prereleases only. For its stable version, merge next into main with a merge commit and create the release on main.
-
Describe the changes under
## [Unreleased]inCHANGELOG.md, they become the release notes -
Check what the branch releases:
scripts/plan-version.sh
-
Select the stage and the version, the script commits them and asks to push:
scripts/release.sh
-
The pushed commit changes
release.json, so it runs the release workflow, which builds and publishes the release and moves its tags
Tip
To take the release commit back before the push:
scripts/undo-release.shmain is on 1.3, and 1.1 and 1.2 still get fixes. A fix reaches each of them through a patch branch and a pull request of its own:
-
Cut the patch branch from the newest tag of the minor, unless it exists:
git switch -c v1.2.x v1.2.1 && git push -u origin v1.2.x -
Put the fix on a branch named after the version that releases it, cherry-picked from
mainwhen it is there already:git switch -c fix/<topic>-v1.2.2 origin/v1.2.x && git cherry-pick -x <commit>
-
Merge a pull request from
fix/<topic>-v1.2.2intov1.2.xwith a merge commit -
Create the release on your checkout of
v1.2.x:git switch v1.2.x && git pull && scripts/release.sh
-
Repeat with
v1.1.xandfix/<topic>-v1.1.4. 1.0 gets no backports
Important
A hotfix for 1.3 while main holds unreleased changes goes through v1.3.x the same way. Merge v1.3.x into main with a merge commit afterwards and delete it. v1.1.x and v1.2.x are never merged, their fixes come from main.
-
Set the new version in
src/Dockerfileand write its checksums:scripts/helper-checksums
-
List the update under
## [Unreleased]inCHANGELOG.mdand create a release
-
Cut
release/v2.0fromnextand create its prereleases there withscripts/release.sh:git switch -c release/v2.0 origin/next && git push -u origin release/v2.0 -
Merge
mainintorelease/v2.0, so v2 has every fix of v1 and the pull request intomainhas no conflicts:git switch release/v2.0 && git pull && git merge origin/main && git push
-
Keep v1 on a branch of its own:
git switch -c v1.x origin/main && git push -u origin v1.x -
Merge a pull request from
release/v2.0intomainwith a merge commit -
Create the release on
mainand select2.0.0:git switch main && git pull && scripts/release.sh
-
Delete
release/v2.0
Important
Cut v1.x from main, or bring an existing one up to date with main, before release/v2.0 is merged into main. Afterwards main is v2 and v1 lives on v1.x alone.
The pull request workflow builds every pull request and publishes the image of a pull request from a branch of this repository as ghcr.io/coollabsio/coolify-helper:pr-<number>.
- Pull requests from forks and Dependabot are built, not published
- A push to a pull request from
main,next, a release branch or a patch branch that changesrelease.jsonis not built, the release workflow builds it - Pull request builds are published to ghcr.io only, as the Docker Hub credentials are in the
releaseenvironment, which no pull request run can use - Pull request builds create no git tag and no GitHub release