Alan SavageandGeorg Lauterbach 172848ccda feat(ci): rebuild supported releases when package updates are available (#4839)
* ci: rebuild supported releases when package updates are available

Check the published image of each supported release every hour and only
rebuild when `apt-get upgrade` would change something in it, instead of
rebuilding blindly once a week. Scheduled runs skip an image younger than
3 hours. Manual runs still rebuild unconditionally unless
`only-if-updates` is set.

* docs: describe rebuilds on package updates instead of weekly rebuilds

* ci: ignore packages that never clear when checking for updates

dovecot-fts-xapian is built from source as 1.9.1-1~bpo12+1 in v16, which
apt always sorts below the Debian package, so it would trigger a rebuild
on every cooldown. List the pending packages in the log.

* ci: schedule the check at minute 17 instead of the start of the hour

* docs: link the changelog entry to the PR

* docs: fix the changelog link text

* ci: do not trigger release rebuilds on Rspamd updates

v16 installs Rspamd from the rspamd.com apt repository, so every upstream
release showed up as a pending update and would be published to the floating
tags. Rebuilds should only pick up Debian updates. From v17 on, Rspamd is a
pinned `.deb` without an apt repository.

* ci: attempt a scheduled release rebuild only once per set of pending updates

The cooldown is based on the age of the published image, but a failed rebuild
publishes nothing. A rebuild that keeps failing was therefore started again on
every hourly run, and an update that never clears every 3 hours.

Each attempt is now recorded as an artifact named after the release and a hash
of the pending updates (`name=version`, ignored packages left out). The
`resolve` job skips a release whose pending updates were already attempted. The
record is written by a new `record-attempt` job that runs in parallel to the
rebuild, so it exists whatever the outcome is. It expires after 7 days, so the
same updates are retried at most once a week. New updates change the name and
are attempted right away.

Also pass `--error-on=any` to `apt-get update` in the check: without it, apt
exits 0 when index downloads fail, which made an outage look like "nothing
pending" instead of failing the job.

* ci: check for package updates daily instead of hourly

The check runs at 06:17 UTC. A fix reaches the floating tags within about a day
plus the build time instead of within about an hour, which is sufficient for
Debian security updates and needs far fewer scheduled runs.

* ci: remove the cooldown for scheduled release rebuilds

The check runs once a day, which already limits how often the floating tags
move. A rebuild loop is prevented by the recorded attempts, so the age of the
published image no longer needs to be checked.

---------

Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
2026-11-06 00:29:10 +01:00
2026-08-30 11:39:56 +02:00
2021-01-16 10:16:05 +01:00
2023-05-26 01:39:39 +02:00

Docker Mailserver

ci::status docker::pulls documentation::badge

📃 About

A production-ready fullstack but simple containerized mail server (SMTP, IMAP, LDAP, Anti-spam, Anti-virus, etc.).

  • Only configuration files, no SQL database. Keep it simple and versioned. Easy to deploy and upgrade.
  • Originally created by @tomav, this project is now maintained by volunteers since January 2021.

Tip

Be sure to read our documentation. It provides guidance on initial setup of your mail server.

Important

If you have issues, please search through the documentation for your version before opening an issue.

The issue tracker is for issues, not for personal support.
Make sure the version of the documentation matches the image version you're using!

  1. FAQ
  2. Usage
  3. Examples
  4. Issues and Contributing
  5. Release Notes
  6. Environment Variables
  7. Updating

📦 Included Services

S
Description
Готовый к работе полнофункциональный, но простой почтовый сервер (SMTP, IMAP, LDAP, защита от спама, антивирус и т.д.), работающий внутри контейнера
Readme MIT
39 MiB
0 Stars 1 Watchers 0 Forks
Languages
Shell 97.4%
Dockerfile 1.7%
Makefile 0.4%
Python 0.3%