Migrate container publishing from Docker Hub to GHCR with automatic versioning#21
Open
Migrate container publishing from Docker Hub to GHCR with automatic versioning#21
Conversation
Co-authored-by: MattHadfield113 <30897252+MattHadfield113@users.noreply.github.com>
MattHadfield113
approved these changes
Nov 7, 2025
Co-authored-by: MattHadfield113 <30897252+MattHadfield113@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Push containers to GHCR instead of Docker Hub
Migrate container publishing from Docker Hub to GHCR with automatic versioning
Nov 7, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Migrates container image publishing from Docker Hub to GitHub Container Registry (GHCR) and implements automatic versioning on merge to
main.Key Changes:
Release workflow (
release.yml): Replaced Docker Hub authentication with GHCR using built-inGITHUB_TOKEN. Updated all image tags toghcr.io/matthadfield113/smart-energy-controller. No repository secrets required.Auto-version workflow (
auto-version.yml): New workflow that auto-increments patch version inconfig.jsonon push tomain, commits the change, creates a git tag, and triggers the release workflow. Skippable via[skip-version]commit message. Ignores markdown, workflow, and test-only changes.Documentation: Updated CI/CD docs to reflect GHCR usage and automatic versioning behavior.
Workflow:
Type of Change
Related Issue
Fixes #20
Testing
Test Configuration
Test Steps
GITHUB_TOKENcontents: write,packages: write)Checklist
Screenshots (if applicable)
N/A - Workflow configuration changes only
Additional Notes
DOCKER_USERNAMEorDOCKER_PASSWORDsecrets needed - uses built-inGITHUB_TOKEN[skip-version]in commit messageghcr.io/matthadfield113/smart-energy-controller:v{version}-{arch}Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.