Skip to content

feat: apt upgrade on rebuild + dated Docker Hub tag#281

Merged
phil-davis merged 1 commit into
masterfrom
feat/apt-upgrade-build-date-tag
Jun 11, 2026
Merged

feat: apt upgrade on rebuild + dated Docker Hub tag#281
phil-davis merged 1 commit into
masterfrom
feat/apt-upgrade-build-date-tag

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Contributor

What

  1. apt-get upgrade -y on rebuild — both v22.04/Dockerfile.multiarch and v24.04/Dockerfile.multiarch previously ran only apt-get update + install, so rebuilds stayed pinned to the base image's original package set. Adding apt-get upgrade -y pulls in the latest package versions (including security fixes) on every rebuild.

  2. Immutable dated Docker Hub tag — adds an opt-in build-date-tag boolean input to the reusable docker-build.yml, enabled from main.yml. On each publish, an additional <docker-tag>-<YYYYMMDD> (UTC) tag is pushed alongside the existing floating tags.

Result

Per matrix version, on merge to master and the weekly cron rebuild, Docker Hub receives:

  • owncloud/ubuntu:22.04 / owncloud/ubuntu:24.04unchanged floating tags
  • owncloud/ubuntu:22.04-<YYYYMMDD> / owncloud/ubuntu:24.04-<YYYYMMDD>new immutable dated tags

This gives traceability: you can tell which dated build a container came from and pin to a specific historical build.

Notes

  • The date tag is version-prefixed so the two matrix builds never collide on the same day.
  • build-date-tag defaults to false, so other consumers of the reusable workflow are unaffected.
  • The build-native self-test job is untouched (push: false, never publishes).
  • Tag-logic dry-run verified output: owncloud/ubuntu:22.04 + owncloud/ubuntu:22.04-<date>.

🤖 Generated with Claude Code

Run `apt-get upgrade -y` in both Dockerfiles so rebuilds pull in the
latest package versions instead of staying pinned to the base image's
original package set.

Add an opt-in `build-date-tag` input to the reusable docker-build
workflow that additionally publishes an immutable `<tag>-<YYYYMMDD>`
(UTC) tag, and enable it from main.yml. Existing floating tags
(22.04, 24.04) are kept unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
@DeepDiver1975 DeepDiver1975 requested a review from phil-davis June 11, 2026 15:57
@phil-davis phil-davis merged commit 8e4682e into master Jun 11, 2026
8 checks passed
@phil-davis phil-davis deleted the feat/apt-upgrade-build-date-tag branch June 11, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants