7.2 KiB
Coolify Release Guide
This guide outlines the release process for Coolify, intended for developers and those interested in understanding how Coolify releases are managed and deployed.
Table of Contents
Release Process
-
Prepare the Release
- Develop changes on
nextor feature branches. - Set the release version in
config/constants.phpandversions.json. Both values must match the planned Git tag without thevprefix (for example,4.2.0for tagv4.2.0). - Verify the changelog and required tests before merging.
- Develop changes on
-
Build the Release Commit
- Merge the release commit into
v4.xthrough a pull request. - The
Production Build (v4)workflow builds AMD64 and ARM64 images and publishes them to Docker Hub and GHCR using immutable architecture tags. - After both builds complete, the workflow creates the multi-architecture
sha-<commit-sha>manifest in both registries. - This workflow does not update a semantic version tag or
latest.
- Merge the release commit into
-
Wait for the SHA Image
- Confirm the complete
Production Build (v4)workflow, including itsmerge-manifestjob, succeeded. - Do not publish the release before the multi-architecture SHA image exists in both registries.
- Confirm the complete
-
Create and Publish the GitHub Release
- Create a GitHub release with a semantic version tag such as
v4.2.0, targeting the exact commit that produced the SHA image. - Mark beta or other test releases as prereleases. Publish production versions as stable releases.
- Publishing the release starts the
Release Coolifyworkflow. It verifies that the Git tag matchesconfig/constants.php, then promotes the existing SHA image without rebuilding it. - The workflow assigns the semantic version tag in Docker Hub and GHCR. Stable releases also update
latest; prereleases do not.
- Create a GitHub release with a semantic version tag such as
-
Verify the Promotion
- Confirm the
Release Coolifyworkflow succeeded. - Verify the semantic version image has the same manifest digest as
sha-<commit-sha>in Docker Hub and GHCR. - For stable releases, also verify
latestpoints to the promoted release manifest.
- Confirm the
-
Update the CDN
- To make a new version available to self-hosted instances, update the version information on the CDN manually.
- Confirm the new version is available at https://cdn.coollabs.io/coolify/versions.json.
Note
The CDN update may not occur immediately after the GitHub release. It can take hours or even days due to additional testing, stability checks, or potential hotfixes. The update becomes available only after the CDN is updated. After the CDN is updated, a discord announcement will be made in the Production Release channel.
Version Types
Stable
- Stable
- The production version suitable for stable, production environments (recommended).
- Update Frequency: Every 2 to 4 weeks, with more frequent possible fixes.
- Release Size: Larger but less frequent releases. Multiple nightly versions are consolidated into a single stable release.
- Versioning Scheme: Follows semantic versioning (e.g.,
v4.0.0,4.1.0, etc.). - Installation Command:
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash
Nightly
- Nightly
- The latest development version, suitable for testing the latest changes and experimenting with new features.
- Update Frequency: Daily or bi-weekly updates.
- Release Size: Smaller, more frequent releases.
- Versioning Scheme: Follows semantic versioning (e.g.,
4.1.0-nightly.1,4.1.0-nightly.2, etc.). - Installation Command:
curl -fsSL https://cdn.coollabs.io/coolify-nightly/install.sh | bash -s next
Beta
- Beta
- Test releases for the upcoming stable version.
- Purpose: Allows users to test and provide feedback on new features and changes before they become stable.
- Update Frequency: Available if we think beta testing is necessary.
- Release Size: Same size as stable release as it will become the next stabe release after some time.
- Versioning Scheme: Follows semantic versioning (e.g.,
4.1.0-beta.1,4.1.0-beta.2, etc.). - Installation Command:
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash
Warning
Do not use nightly/beta builds in production as there is no guarantee of stability.
Version Availability
When a new version is released and a new GitHub release is created, it doesn't immediately become available for your instance. Here's how version availability works for different instance types.
Self-Hosted
- Update Frequency: More frequent updates, especially on the nightly release channel.
- Update Availability: New versions are available once the CDN has been updated.
- Update Methods:
- Manual Update in Instance Settings:
- Go to
Settings > Update Check Frequencyand click theCheck Manuallybutton. - If an update is available, an upgrade button will appear on the sidebar.
- Go to
- Automatic Update:
- If enabled, the instance will update automatically at the time set in the settings.
- Re-run Installation Script:
- Run the installation script again to upgrade to the latest version available on the CDN:
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash
- Manual Update in Instance Settings:
Important
If a new release is available on GitHub but your instance hasn't updated yet or no upgrade button is shown in the UI, the CDN might not have been updated yet. This intentional delay ensures stability and allows for hotfixes before official release.
Cloud
- Update Frequency: Less frequent as it's a managed service.
- Update Availability: New versions are available once Andras has updated the cloud version manually.
- Update Method:
- Updates are managed by Andras, who ensures each cloud version is thoroughly tested and stable before releasing it.
Important
The cloud version of Coolify may be several versions behind the latest GitHub releases even if the CDN is updated. This is intentional to ensure stability and reliability for cloud users and Andras will manully update the cloud version when the update is ready.
Manually Update/ Downgrade to Specific Versions
Caution
Updating to unreleased versions is not recommended and can cause issues.
Important
Downgrading is supported but not recommended and can cause issues because of database migrations and other changes.
To update your Coolify instance to a specific version, use the following command:
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash -s <version>
Replace <version> with the version you want to update to (for example 4.0.0-beta.332).