Join the beta

Update and redeploy

To ship a new version, create a build for the new image and point the deploy at it. To roll back, point the deploy at the previous build.

Ship a new version#

A deploy keeps its own copy of what it runs: the image and tag, the CPU and memory requests and limits, and the container port. It takes that copy from its build when the deploy is saved. Saving with the same build keeps the copy; saving with a different build copies that build as it is then. The usual way to update your application is to create a new build for the new image and point the deploy at it:

  1. Push the new image

    Push the new version to your registry under a new tag, for example ghcr.io/acme/api:1.5.0.

  2. Create a build for it

    In BuildsNew build, create a build in the same project with the new Tag. Keep the same Container port and resources unless they change. A versioned name such as api-1.5.0 makes the Build list easy to read. See Create a build.

  3. Point the deploy at it

    In Deployments, choose Edit on the deploy, pick the new build under Build and choose Save deploy. The deploy copies the new build and its replicas are replaced.

  4. Check the rollout

    Watch the deploy's pods on Pods and its output in Watch logs. See Deployment status.

Promote the same build through environments: update the staging deploy first, then choose the same build on the production deploy.

Roll back#

Edit the deploy and choose the previous build under Build. Old builds stay on the Builds page until you delete them, which is why you shouldn't delete a build you might roll back to.

Redeploy the same image#

If you pushed new content under the same tag (for example latest), the build's image reference hasn't changed, so the deploy has nothing new to point at.

Roll onto a build#

Editing a build on the Builds page changes no running deploy, because each deploy keeps its own copy. To make a deploy pick up an edited build, choose Roll onto build from its ⋮ menu. It shows when the deploy differs from its build. DevLyft reads the build again, keeps the deploy's environment variables and secrets, and replaces the pods. Fleets have the same action.

Deleting a deploy#

Deleting a deploy drains it. The row shows a Deleting badge until its pods are gone, then disappears. The name can be reused straight away, and the deploy's routes are removed at once. See Delete a deploy.

Changes that create a new build for you#

Adjust resources on a deploy doesn't change the existing build. It creates a new build with the same image, tag and port and the new CPU and memory, named with the next version suffix (api becomes api-v2), then points the deploy at it. The dashboard warns that this workload may restart while the new resource allocation is applied. See Adjust resources.

Other deploy changes#

Edit deploy can also change the name, tenancy, machine type, location, replicas, public exposure and environment variables. See Edit a deploy.

  • Secrets: updating a secret's value on the Secrets page doesn't edit any deploy. See Environment variables and secrets for when a new value reaches running replicas.
  • Editing a build in place from the Builds page changes no running deploy or fleet. Each keeps its own copy until it is saved with that build again or rolled onto it. The edit dialog says how many deploys and fleets run a copy. Prefer a new build when you want each deploy's history to stay clear.