fix: only push images and charts on releases with proper package asso… #217
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.
Fix: Only Push Images and Charts on Releases with Proper Package Association
Overview
This PR fixes critical issues preventing container images and Helm charts from appearing in GitHub packages. The main problem was that images were being pushed on every commit/PR instead of only on releases, and lacked proper OCI labels for GitHub package association.
Problems Solved
1. Images Not Appearing in GitHub Packages
2. Workflow Job Dependencies
release
job was depending onbuild-docs
which only runs on PRs, causing release jobs to hang3. Unnecessary Image Pushes
Key Changes Made
1. Release-Only Publishing
2. Proper OCI Labels for Package Association
3. Sequential Workflow Dependencies
Expected Behavior After Fix
GitHub Packages Visibility
Release Process
ghcr.io/weaveworks/gitopssets-controller:v0.x.x
and:latest
ghcr.io/weaveworks/charts/gitopssets-controller
Clean Registry
Testing
Impact
Related Issues
This addresses the core issue where container images were being pushed but not appearing in the GitHub packages interface, making them hard to discover and use.