Skip to content

Docker workflow: version as {jellyfin-version}-{rolling-number}, run on release/manual only - #30

Merged
JPVenson merged 5 commits into
masterfrom
copilot/build-and-publish-docker-image
Mar 3, 2026
Merged

Docker workflow: version as {jellyfin-version}-{rolling-number}, run on release/manual only#30
JPVenson merged 5 commits into
masterfrom
copilot/build-and-publish-docker-image

Conversation

Copilot AI commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

The Docker publish workflow used git semver tags for image versioning and ran on every push to master. It now derives the image tag from the Jellyfin base image version in the Dockerfile with an auto-incrementing build counter (e.g. 10.11.6-1), and only triggers on GitHub releases or manual dispatch.

Versioning

  • Extracts Jellyfin version from FROM jellyfin/jellyfin:X.Y.Z in docker/Dockerfile at build time
  • Queries GHCR via gh api for existing {version}-N tags; increments the highest found, defaulting to 1 on first publish
  • Dots in the version string are escaped before regex matching to prevent false matches (e.g. 101116 won't match 10.11.6)
  • Removed docker/metadata-action — tags are now computed explicitly
10.11.6-1   ← first publish
10.11.6-2   ← subsequent publish, same base image
10.11.7-1   ← after Dockerfile bumped to 10.11.7

Triggers

  • Removed push: branches: master trigger
  • Workflow now runs only on release (type: released) and workflow_dispatch
  • latest tag is applied on release events (previously on master push)

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

Co-authored-by: JPVenson <6794763+JPVenson@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub workflow for building and publishing Docker image Add Docker build & publish workflow Mar 3, 2026
Co-authored-by: JPVenson <6794763+JPVenson@users.noreply.github.com>
Copilot AI changed the title Add Docker build & publish workflow Docker image versioning: auto-compute {jellyfin-version}-{rolling-number} tags Mar 3, 2026
Copilot AI and others added 2 commits March 3, 2026 12:26
…low_dispatch

Co-authored-by: JPVenson <6794763+JPVenson@users.noreply.github.com>
Co-authored-by: JPVenson <6794763+JPVenson@users.noreply.github.com>
Copilot AI changed the title Docker image versioning: auto-compute {jellyfin-version}-{rolling-number} tags chore: restrict Docker publish workflow to release and manual triggers only Mar 3, 2026
Copilot AI changed the title chore: restrict Docker publish workflow to release and manual triggers only Docker workflow: version as {jellyfin-version}-{rolling-number}, run on release/manual only Mar 3, 2026
@JPVenson
JPVenson marked this pull request as ready for review March 3, 2026 12:35
@JPVenson
JPVenson merged commit 648ba65 into master Mar 3, 2026
3 checks passed
@JPVenson
JPVenson deleted the copilot/build-and-publish-docker-image branch March 3, 2026 12:35
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