Gitea major version upgrade: what changes

Gitea's documented upgrade path is a backup taken with Gitea stopped, automatic database migrations on startup, and a restored backup as the only route back after a database upgrade. Here is what to confirm before moving a production instance.

On this page

What a Gitea major version upgrade changes today

A team running Gitea on an older line that has to move to the current one faces an upgrade made of three steps: a backup, a stop, then automatic database migrations on startup. The current stable release described here is v28.4.0, released 2026-11-15 and the latest stable release as of December 2026 according to Gitea's GitHub releases. Confirm the current release, its support window and the v28 breaking-change list in the release notes before you set a date, since this page does not set those out. Treat that check as the first task in your plan, because the breaking-change list decides which of your own customizations and integrations need work before the stop.

The change lives in the database. Gitea's upgrade documentation says a move between minor lines changes the database structure, and gives the example of going from 1.4.x directly to the latest 1.5.y. Migrations run when Gitea starts, so the first launch on the new binary is when the schema changes, and the documentation warns that large databases can make that first launch slow. Customized templates may also break after the upgrade, so any template or theme override needs a review against the new version. Patch upgrades within the same a.b.x series are documented as compatible in both directions, but downgrading after a database upgrade is not supported without restoring a backup. The upgrade guide sets out the full procedure.

Your rollback plan is the backup, so build it before the stop. The documentation asks you to back up the database, the config, the APP_DATA_PATH data and any external storage before every database upgrade, with Gitea stopped. Check that the backup covers every location your instance writes to, including external storage, and rehearse a restore on a copy before the production date. On that copy, time the first startup with migrations applied and load your customized templates to confirm they still render. Keep the previous binary and the pre-upgrade backup until the team has verified the new release, because returning to the old schema depends on that restore.

Which Gitea versions are current and when they shipped

This table lists the Gitea releases that anchor a major version decision, with dates from the go-gitea/gitea GitHub releases page. Read it top down: the v28 line is the newest, v1.27 is the older line you would move off, and the status column shows what to verify before you commit. The main takeaway is to pick a specific patch release as your target, then confirm its support window with Gitea before any move is scheduled.

VersionRelease dateStatus
v28.4.02026-11-15 (November 15, 2026)Latest stable release as of December 2026. Newest row in this table, so confirm its support window with Gitea before scheduling any move onto it.
v28.1.02026-10-06 (October 6, 2026)Follows v28.0.0. Confirm with Gitea whether this release still receives fixes before choosing it as a target.
v28.0.02026-09-29 (September 29, 2026)First release of the v28 line. Early releases have less patch history behind them, so confirm its support window with Gitea before choosing it.
v1.27.32026-08-29 (August 29, 2026)Patch in the v1.27 line. Patch upgrades within one a.b.x series are documented as compatible both ways, so confirm the line's support end with Gitea.
v1.27.02026-07-13 (July 13, 2026)Earliest row here. Downgrading after a database upgrade requires a backup restore, so confirm this line's support end with Gitea.

The documented Gitea major version upgrade path, step by step

The documented sequence moves a Gitea instance from its current version to a target release in a fixed order: check the version and database, read the release notes, back up everything, rehearse on staging, verify, and then repeat on production. It produces a tested upgrade on production and a backup you can restore if the upgrade goes wrong.

  1. Confirm version, database and upgrade type

    Record the Gitea version you run now, the database engine (MySQL, PostgreSQL, SQLite or MSSQL) and the target release. Then decide whether the move is a patch or a minor change. The upgrade docs say patch upgrades within the same a.b.x series are compatible in both directions, while a minor upgrade changes the database structure, so it needs the full backup in step 3. The docs give a direct example of moving from 1.4.x to the latest 1.5.y, so confirm with the Gitea upgrade documentation that your starting version can move to your target the same way. Done when the version, database, upgrade type and target are written in the change record.

  2. Read release notes and inventory templates

    Read the release notes for every version between your current release and the target, using the Gitea GitHub releases page as the list of versions. Note any breaking changes that touch your configuration, authentication, database, package registries or Actions setup. Next, list every template you have customized, because the upgrade docs warn that customized templates may break after an upgrade. Output: a written list of versions reviewed, the breaking changes that apply to your instance, and each overridden template with an owner for its fix.

  3. Stop Gitea and back up all state

    Stop the Gitea service so no writes happen during the backup. Back up the database, the configuration file, the data under APP_DATA_PATH and any external storage, such as an object store that holds attachments or packages. Store the copies outside the host being upgraded and confirm that the database dump and files can be read. The docs state that downgrading after a database upgrade is not supported without restoring a backup, so this backup is also your rollback path. Done when each item has a recorded location and a restore has been scheduled as a test.

  4. Restore to staging and run the upgrade

    Restore the production backup into a staging environment that matches production's Gitea version, database engine and storage layout. Install the target Gitea release there and start it. Migrations run automatically on startup, and large databases can make the first launch slow, so wait for the process to finish rather than restarting it. Watch the startup log until it reports that the server is listening, and record how long the first launch took so the production window is planned from a measured figure. Output: a staging instance on the target version with a clean startup log.

  5. Verify logins, repositories, Actions and registries

    Test the staging instance against a checklist built from your actual usage. Sign in with local and SSO accounts, clone and push to representative repositories, and run a workflow on Gitea Actions with the runners your teams use. Push and pull at least one package for each registry type your teams depend on, and confirm that every customized template renders correctly. Done when every item passes. Record any failure with its fix, or with a decision to hold the upgrade until it is resolved.

  6. Repeat the same sequence on production

    Run steps one through five on production in the same order, using the backup and checklist from staging. Schedule a maintenance window, stop Gitea, take the production backup, upgrade, and watch the first launch. Run the verification checklist again on production before you tell users the service is back. Output: a signed-off record of the version before and after, the backup location and the checklist results, which is the evidence you keep for any later rollback decision.

Which documented changes can break an upgrade

Gitea's upgrade documentation names several changes that can stop or delay an upgrade. Each one ties to a step in the plan: the database backup, the rollback decision, the template review, the maintenance window and the workflow tests. The final card covers the gap in the documentation, which does not list v28-specific breaking changes.

Migrations run on startup

Minor upgrades change the database structure, and Gitea runs the migrations automatically when it starts. The documentation gives moving from 1.4.x to the latest 1.5.y as a direct step that includes these changes. Patch upgrades within the same a.b.x series are compatible in both directions, so schema risk sits at minor and major boundaries. Back up first: with Gitea stopped, copy the database, the config, the APP_DATA_PATH data and any external storage before each database upgrade.

Upgrade docs

No downgrade without a backup

After a database upgrade, downgrading is not supported without restoring a backup. Treat the pre-upgrade backup as the only rollback path, and confirm it restores into a test instance before the production window opens. Reverting the binary and keeping the migrated database is not a plan the documentation supports. Write the restore steps and the named owner into the change record before starting. Time a full restore on a copy of production data so the team knows whether rollback fits the window.

Custom templates may break

The documentation warns that customized templates may break after an upgrade. Inventory every custom template in your deployment, including email, page and organization templates, and record which upstream template each one extends. Render each one on a staging instance running the new version, and check pages, notification emails and the sign-in screen. A template that renders can still behave differently, so compare its output with the previous version before approving it.

Slow first launch on large databases

The documentation notes that large databases can make the first launch after an upgrade slow, because migrations run during that start. Measure the size of your database and the number of repositories, then run the migration on a restored copy to see how long the first start takes. Agree a maintenance window that covers that time plus the restore time if the migration fails. Ask your database team which tables are largest, so the test covers the slowest migrations first.

Check v28 release notes and Actions

The upgrade guidance does not list v28-specific breaking changes, so read the v28.0.0 release notes before scheduling the upgrade. Gitea Actions is documented as designed to be compatible with GitHub Actions. That describes a design aim and does not guarantee that every workflow runs unchanged. Run each production workflow, including self-hosted runners and third-party actions, against the new version on staging, and record every failure before approval.

Gitea releases

How to prepare by environment before scheduling the move

A single-server or VM install has the simplest data path: one database, one application data directory and, in many cases, no external storage. That makes the backup set easy to define and the rollback point easy to test. The main risk is skipping the restore test, because a backup that has never been restored is still an assumption.

  • One complete backup set: Stop Gitea, then back up the database, the config file, the APP_DATA_PATH directory and any external storage in the same window. The upgrade docs call for this before every database upgrade.
  • A maintenance window sized for first launch: Migrations run automatically on startup, so the window must cover the first launch on the new version, not only the binary swap.
  • A restore test on a copy: Restore the backup to a separate host, upgrade that copy first and confirm that repositories, users and runners behave as expected.
  • Template review: Compare any customized templates with the new release, since the upgrade docs say they may break after an upgrade.
  • Rollback point: Before the database changes, the backup and the old version remain available. After migrations run, only a restored backup returns the earlier version.

Before booking the window, confirm the restore test finished with the same repository list and login results as production.

Rollback is cheap only until the first migration runs

The sequence starts by identifying the current version, then reviewing release notes and customized templates. Gitea is stopped and a backup of the database, config, APP_DATA_PATH data and any external storage is taken. Until a migration runs, you can still go back by keeping that pre-upgrade backup and the previous binary available until verification passes. The restore to staging and the staging upgrade rehearse the same path, because migrations run automatically on startup. Once migrations have run, the only documented route back is restoring the backup, so the go or no-go decision and the production backup must be complete before the production upgrade starts. Check how long the first launch takes on a large database and whether custom templates still render.

Upgrade sequence with the two rollback points marked.

How to test a Gitea upgrade before production

Rehearse the upgrade on staging with a copy of a recent production backup before you change production. Gitea's upgrade guidance says to back up the database, the config, the APP_DATA_PATH data and any external storage before every database upgrade, with Gitea stopped. Restore that same set to staging so the database, the app.ini file and repository storage match production. Migrations run automatically on startup, and large databases can make the first launch slow, so start a timer when staging first boots and record how long the migrations take. That figure, measured on a copy of production's data size, is your main input for the maintenance window. Keep the staging host's database engine, version and resources close to production, or the timing will not carry over.

Write the checklist yourself or have your partner write it, because Gitea's upgrade guidance does not describe an automated test suite. Give each area a named tester. Sign in with local and SSO accounts, check that users see the repositories and teams they saw before, and push a commit over both SSH and HTTPS. Confirm that branch protection still blocks the pushes it blocked. Run at least one Gitea Actions workflow on the same runners production uses, and check that its secrets and jobs resolve. Gitea describes Actions as designed to be compatible with GitHub Actions, so test each workflow you rely on instead of assuming it works. Upload and pull a package for every registry type your teams use, from npm and PyPI to Maven, container images and Helm charts. Load pages that use customized templates, since the upgrade guidance warns they may break.

Pin the target release before you write the checklist. The Gitea releases page listed v28.4.0 as the latest stable release as of December 2026, so confirm which release your team is moving to and test that exact version. Record every result with the Gitea version, the date, the tester and the time each step took, then turn the staging timings into the production window plan. Gitea's guidance says downgrading after a database upgrade is not supported without restoring a backup, so the backup taken with Gitea stopped is your only rollback point, and you should rehearse restoring it. Agree in advance which failed check stops the cutover, who makes that call and what users hear if the window runs long. Ask your partner or internal team to confirm the expected migration time for your database size, since the staging run is the only evidence you will have.

What a Gitea major version upgrade costs and who does it

What drives the cost of a Gitea major version upgrade?

The cost depends on how many instances change, how much testing you need before production, and what the upgrade touches around Gitea, so a quote follows from the written scope. DeployOpen publishes no price list. The main drivers are the number of Gitea instances, the size of the database, customized templates, integrations such as SSO, CI runners, webhooks or external storage, the change window you can accept, and the depth of testing. Each instance needs its own backup, staging run and verification. Customized templates often take the most review time, because Gitea's upgrade docs warn that they may break after an upgrade. Ask for a quote that lists instances, integrations, test depth and change window as separate items. Confirm whether the price covers the rollback plan and a written handover. The upgrade work is one-time, while ongoing support or continuous testing is a separate retainer.

How long does a Gitea major version upgrade take?

Timing is set in the written scope and depends mainly on database size, first-launch time and how much testing the scope includes. Gitea's upgrade docs say migrations run automatically on startup and that large databases can make the first launch slow, so the database is usually the largest unknown. Measure it on a staging copy before you commit to a maintenance window. Testing adds time in two places: repository and CI checks against the new version, and a review of customized templates, which may break. Ask the implementer to list the staging run, the timed first launch, the test set and the rollback check as separate steps, each with its own expected duration. Ask for those figures in writing, based on a timed run against a copy of your own database, not on general estimates.

What does a Gitea upgrade need from our team?

Your team provides access, backups and approvals, and the implementer plans, stages and executes the upgrade against them. Expect to provide:

  • Admin access to the Gitea hosts and the configuration file
  • Backup access, including the database, the config, the APP_DATA_PATH data and any external storage
  • Database credentials with rights to back up, restore and run migrations
  • A staging host that is close enough to production to test the upgrade first
  • A list of customized templates and integrations, such as SSO, CI runners and webhooks
  • Approval of a change window and a named owner for the rollback decision

Gitea's upgrade docs say to stop Gitea and back up the database, config, APP_DATA_PATH data and external storage before every database upgrade. Downgrading after a database upgrade requires restoring a backup.

Can our own team upgrade Gitea without an implementation partner?

Yes, if your team can take a verified backup, restore it to a separate host and read the release notes, and the docs cover the core steps. Gitea's upgrade docs describe the main flow: back up, stop the service, then start the new version so migrations run automatically. Patch upgrades within the same a.b.x series are compatible in both directions, while a minor upgrade changes the database structure, so the version path matters. Your team still needs to check templates, integrations and login flows, and to rehearse the rollback. A single instance with no customized templates and a short integration list is usually within reach of an internal team with those skills. A team without a tested restore, or with many integrations, should weigh outside help. Read the release notes for every version on your upgrade path before you start.

Is there a managed Gitea upgrade service on AWS, Azure or Google Cloud?

No managed AWS, Azure or Google Cloud service that runs Gitea was found in provider documentation as of December 2026, so on those clouds the upgrade is work your team or an implementation partner performs on infrastructure you run. Check provider documentation again before you rely on this, since offerings can change after a review date. A managed service would also change who performs the upgrade and who is responsible for the database and backups, so confirm those responsibilities in any contract. The comparison between running Gitea yourself and using a managed service is covered on a separate page. This answer covers only the upgrade work itself.

When should we bring in help for a Gitea upgrade?

Bring in help when the upgrade carries risk your team has not already tested. Four cases are the most common:

  • Customized templates, which Gitea's upgrade docs say may break after an upgrade
  • Very large databases, where first-launch time and migration timing need measuring on a copy
  • Evidence needs for auditors, such as change records, test results and rollback proof
  • No tested restore, meaning backups have never been restored to a separate host

A fixed-scope engagement can cover these items in writing before work starts. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports or certifications. Independent auditors and certification bodies make those decisions.

When an outside team should run the upgrade

Choose a fixed-scope engagement with written deliverables when the instance is too complex to upgrade from a checklist alone. That usually means customized templates, a large database, several integrations (for example, SSO, Gitea Actions runners or package registries) or evidence needs for an assessment. The Gitea upgrade documentation warns that customized templates may break after an upgrade and that a large database can make the first launch slow, because migrations run automatically on startup. The scope should therefore list every custom template, the database size, each integration to be retested and the rollback steps, with a named owner for sign-off. Ask any partner to confirm these items in writing before work starts, including who tests the restored instance and what the handover package contains. Expect the quote to follow from this written scope, since DeployOpen does not publish a price list.

DeployOpen prepares systems, controls and evidence for compliance assessments, so an outside team can produce configuration baselines, change records and backup restore results for your assessor to review. It does not issue audit reports, attestations or certifications. Independent auditors and certification bodies do that work, so confirm with your assessor which artifacts they will accept before the engagement begins. Whether or not you use outside help, a team that has never restored a Gitea backup should prove that the restore works before any upgrade. The Gitea upgrade documentation says to stop Gitea and back up the database, the config, the APP_DATA_PATH data and any external storage before each database upgrade, and a downgrade after a database upgrade is not supported without restoring a backup. Restore that set to a separate host, start the target version there, and check repositories, users and Actions runs before you touch production.

How DeployOpen plans and runs Gitea upgrades

DeployOpen treats a Gitea major version upgrade as a planned change to your own infrastructure, whether it runs in your cloud account, data center or air-gapped network. Most engagements start with a written scope that covers backup and rollback steps before any database change, and end with documentation your team can run. Ongoing upgrades and testing can be handled under a retainer.

How we scope

  • The written scope sets which Gitea versions, database engine and deployment layout the upgrade covers.
  • Scope names the config, APP_DATA_PATH and any external storage that must be backed up before the upgrade starts.
  • Engagements are fixed-scope, so deliverables and timelines are agreed in writing before work starts.

How we build

  • Rehearse the upgrade on a copy of production data, because large databases can make the first launch slow.
  • Review custom templates against the target version, because customized templates may break after an upgrade.
  • Test Gitea Actions, package registries and SSO login paths on the target version before cutover.

How we hand over

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Confirm the support window for your target Gitea version before you set an upgrade date.
  • Ask the quote to name the backup, rollback test and post-upgrade check as separate line items.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.