fix(ci): fix broken Docker workflow and modernize #1318
Merged
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.
Docker Push Bug Fixes 🚨
Hi, amazing HA addition you've built for adaptive-lighting. I tried to run it locally for dev purposes and ran into a few sharp edges, as well as unobvious decisions in the setup.
I had Claude assist me in getting the repo set up for development purposes and fix the sharp edges. These PRs contain some patches that might be useful for you. Use or discard as you see fit. The usual ultra verbose Claude description below, take it with a grain of salt.
In this case:
1. Fix Broken Push Condition (CRITICAL)
Problem:
masterbranch, but repository usesmainSolution:
2. Add Missing Checkout Step
Problem:
Solution:
actions/checkoutstepModernization Improvements 🎉
3. Migrate to GitHub Container Registry (GHCR)
Old Approach:
New Approach:
Benefits:
GITHUB_TOKEN4. Add Semantic Versioning
Old: Only
latesttagNew: Automatic version tagging:
v1.2.3(full semver)v1.2(major.minor)v1(major)latest(on main branch)pr-123(on pull requests)main(on main branch)How It Works:
5. Add GitHub Actions Caching
New:
Benefits:
6. Security: Digest Pinning
Old:
New:
Security Benefits:
7. Add Explicit Permissions
New:
Security Benefits:
8. Enhanced Workflow Triggers
Old:
New:
Benefits:
Impact
Before This PR:
After This PR:
Testing
Migration Notes
For Maintainers:
GITHUB_TOKENis automaticghcr.io/basnijholt/adaptive-lightingdocker pull ghcr.io/basnijholt/adaptive-lighting:latestBackward Compatibility:
🤖 Generated with Claude Code