v1.3.0 runs the same container image.
Creating a release doesn’t update any customer. Running deployments keep their current release until you deploy an update. New installs get your newest release that built successfully.
Each deployment stays on its release until you deploy another one.
Before you start
- Every required build variable has a value. If one is missing, you can’t create a release. See Configure environment variables.
- Your application fits the application requirements. Deployz doesn’t check the analysis result before it builds, so a release can build even when the analysis still lists required changes. Those changes still block new deployments.
Create the release
Who: you (the vendor), in the Deployz dashboard.1
Open the Releases tab
Open your application and select Releases.
2
Open the form
Select Create release. The New release form opens.
3
Enter a version
In Version, enter a label such as
v1.3.0. Deployz suggests the next patch version after your newest release, or v0.1.0 for the first one. When your newest release’s version isn’t in the 1.2.3 or v1.2.3 form, the field starts empty. A version can use letters, digits, ., _, and -. It must start with a letter, a digit, or _, and can be up to 101 characters long. Each version must be unique for the application, including versions whose build failed. If you reuse a version, the form shows “Version <version> already exists for this application. Use a different version number.”4
Choose the commit
In Commit, select a commit from the list. The list shows commits from your application’s branch. To use another commit, select Enter commit SHA manually and paste its SHA, from 7 to 40 hexadecimal characters (
0-9 and a-f). Deployz checks the SHA with GitHub. If the commit isn’t in the repository, the form shows “This commit doesn’t exist in the repository.” If GitHub is unavailable, enter the full 40-character SHA.5
Create it
Select Create release. Deployz starts building the container image. A build usually takes a few minutes, and the page updates when it finishes. An application builds one release at a time. If another release is still building, the form shows “Another release of this application is still building. Wait until it finishes.”
Build the first release from the test deployment page
Who: you (the vendor), in the Deployz dashboard. If your application has no built release when you create a test deployment, the page offers Build release from commit followed by a short SHA. This builds the commit the analysis read. The release’s version is the first 12 characters of that commit’s SHA, for examplea1b2c3d4e5f6. Because that version isn’t in the v1.2.3 form, the Version field starts empty the next time you create a release. Enter a version of your choice.
Build limits
- Timeout. A build that runs longer than 60 minutes stops and shows Build failed with “The version build ran out of time.”
- Architecture. Deployz builds every container image for Linux on x86_64 (
linux/amd64). For how Deployz runsdocker build, see How Deployz builds the container image. - Registry rate limits. When the container registry limits base image downloads, Deployz retries the build on its own, up to 3 times, after waiting 1, 3, and 8 minutes. If the limit continues, the build fails. See Fix a failed build.
Build statuses
The Build column on the Releases tab shows each release’s status:
The newest Ready release has a Customer installs label. That’s the release new customer installs get. The line above the table names it, for example “Customer installs get v1.3.0 (commit a1b2c3d).”
To see a release’s full commit SHA and creation time, select the arrow next to its version. Running on shows which deployments currently run each release.
Check for infrastructure changes
When your application has at least one deployment, the Releases tab compares what your application needs now with what one of its deployments was created with. It checks only one of the application’s deployments, not every deployment:- No infrastructure changes means that deployment has the same parts your application needs now.
- Infrastructure requirements changed means the parts differ. The notice reads: “This release needs infrastructure changes. Deployz cannot apply them to an existing deployment. Create a new deployment for each customer that needs this release.”
- Deployz refuses the deploy when the application now needs a database or cache that the deployment doesn’t have, a different database engine, or a different set of workers, queues (Preview), or scheduled jobs (Preview). The message names what’s missing, for example “The application now needs a database, which this deployment does not have.”
- Deployz allows the deploy when the application no longer needs a database or cache that the deployment has. The notice still shows Infrastructure requirements changed in this case. The unused database or cache stays in the deployment.
Next steps
- Run a test deployment with your new release.
- Deploy an update to existing customers.
