Skip to content

Add GitHub releases with patch version bumps for scheduled security builds#653

Merged
samip5 merged 4 commits into
masterfrom
copilot/create-gh-releases-for-images
Feb 27, 2026
Merged

Add GitHub releases with patch version bumps for scheduled security builds#653
samip5 merged 4 commits into
masterfrom
copilot/create-gh-releases-for-images

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 27, 2026

The weekly scheduled security rebuild pushes updated Docker images but creates no GitHub releases, making these rebuilds invisible to users tracking releases.

Scheduled build (scheduled-build.yml)

  • Patch version bumps: Each weekly rebuild increments the patch version of the latest release tag (e.g., noble-1.0.2noble-1.0.3) instead of inventing a separate tag scheme
  • GitHub release creation: Creates a release for each rebuilt image with the bumped tag
  • Tag format validation: Fails early if the latest release tag doesn't match <codename>-<major>.<minor>.<patch>
  • contents: write permission: Required for gh release create

Example flow:

# Sunday cron fires
gh release list → finds noble-1.0.2
noble-1.0.2 → noble-1.0.3  (patch bump)
docker build+push: phusion/baseimage:noble-1.0.3, phusion/baseimage:noble
gh release create noble-1.0.3

Housekeeping

  • docker/build-push-action v5 → v6 in both main.yml and scheduled-build.yml
  • Removed deprecated repo-token from stale.yml (actions/stale@v9 uses GITHUB_TOKEN by default)

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

- main.yml: Trigger on tag pushes (noble-*, jammy-*) instead of manual
  release published events
- main.yml: Add step to create GitHub release after image build+push
- main.yml: Add contents:write + packages:write permissions
- main.yml: Update docker/build-push-action from v5 to v6
- scheduled-build.yml: Update docker/build-push-action from v5 to v6
- stale.yml: Remove deprecated repo-token parameter

Co-authored-by: samip5 <1703002+samip5@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub releases creation for images Auto-create GitHub releases on tag push and update deprecated workflow components Feb 27, 2026
…ed workflow components

- scheduled-build.yml: Create GitHub release after each weekly security
  rebuild with date-stamped tag (e.g. noble-1.0.2-security.20260227)
- scheduled-build.yml: Add date-stamped Docker image tags alongside
  existing version and codename tags
- scheduled-build.yml: Bump permissions to contents:write for release
  creation
- scheduled-build.yml: Exclude security-tagged releases from base
  version lookup to prevent nested tags
- main.yml: Update docker/build-push-action from v5 to v6
- scheduled-build.yml: Update docker/build-push-action from v5 to v6
- stale.yml: Remove deprecated repo-token parameter

Co-authored-by: samip5 <1703002+samip5@users.noreply.github.com>
Copilot AI changed the title Auto-create GitHub releases on tag push and update deprecated workflow components Create GitHub releases for scheduled weekly security builds Feb 27, 2026
The scheduled weekly security build now bumps the patch version
(e.g. noble-1.0.2 -> noble-1.0.3) instead of appending
-security.YYYYMMDD. Each rebuild creates a proper GitHub release
with the new patch tag and pushes Docker images accordingly.

Co-authored-by: samip5 <1703002+samip5@users.noreply.github.com>
Copilot AI changed the title Create GitHub releases for scheduled weekly security builds Add GitHub releases with patch version bumps for scheduled security builds Feb 27, 2026
@samip5 samip5 marked this pull request as ready for review February 27, 2026 13:26
@samip5 samip5 merged commit c662980 into master Feb 27, 2026
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