Automating Zitadel Updates with Autoupdate

Date: Tue, Mar 7, 2023

Tag(s): Automating Zitadel Updates Autoupdate Automatic

Zitadel is an open source identity management platform that provides features such as authentication, authorization, multi-tenancy and audit trail.

Chapati Systems Autoupdate is a tool that can automatically check for the latest release of Zitadel (and other software) on GitHub and download and install it on your server. It requires a configuration file (INI format) that specifies the parameters for updating Zitadel, such as:

To use Chapati Systems Autoupdate, you need to run it as root user on your server with a command like the following one:

root@server:/opt/config# ./autoupdate --config=/opt/config/server.ini

This will read the configuration file from /opt/config/server.ini and perform the following steps:

  1. Fetch the latest release information from https://api.github.com/repos/zitadel/zitadel/releases/latest
  2. Compare the current version of Zitadel on your server with the latest version available on GitHub
  3. If there is a newer version, download it from GitHub and save it
  4. If specified, run of preUpdateHook before updating Zitadel
  5. Stop the service that runs Zitadel
  6. Replace the old binary with the new one
  7. Run the migrations with the setup command provided from Zitadel
  8. Start the service that runs Zitadel with the configuration file
  9. If specified, run of postUpdateHook after updating Zitadel

That’s it! You have successfully updated Zitadel using Chapati Systems Autoupdate.

I hope this blog post helps you explain how Chapati Systems Autoupdate works and how it can benefit users who want to keep their identity management platform up-to-date.