We've added a job to push OCI artifacts to the ghcr. But these pushes are happening on every run in the main branch. It means that if a change without a version bump was pushed to the main branch, the old artifact will be overwritten.
Even though we have some checks that should not let it happen, I would like to add some logic to the "push" step, that would only push the versions, that are not in the ghcr yet.
AC:
We've added a job to push OCI artifacts to the ghcr. But these pushes are happening on every run in the main branch. It means that if a change without a version bump was pushed to the main branch, the old artifact will be overwritten.
Even though we have some checks that should not let it happen, I would like to add some logic to the "push" step, that would only push the versions, that are not in the ghcr yet.
AC: