## What this PR does
Since #5169 finalize publishes the release page last, so a run that
fails in `Publish draft release` gets re-run after the chart is already
pushed. The re-run packaged and pushed the chart again, and `helm
package` doesn't give the same bytes twice (I packaged the same tree
twice with different file times and got two digests), so
`cozy-installer:X.Y.Z` moved to another digest.
Now the chart step pushes only when `cozy-installer:X.Y.Z` is not in the
registry yet. `cozy-installer:latest` still follows the latest decision
on every run.
The test runs the step against stub skopeo, helm and yq: first run
pushes once, re-run pushes nothing, older patch leaves latest alone,
failed push fails the step.
Lines get this in own PRs: #5487 (release-1.7) and #5488 (release-1.6).
### Downstream repositories
- [x] No downstream repository is affected by this change
- [ ] [cozystack/website](https://github.com/cozystack/website) -
follow-up:
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack)
- follow-up:
- [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up:
- [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up:
- [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) -
follow-up:
- [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) -
follow-up:
- [ ]
[cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server)
- follow-up:
- [ ]
[cozystack/external-apps-example](https://github.com/cozystack/external-apps-example)
- follow-up:
- [ ] [cozystack/examples](https://github.com/cozystack/examples) -
follow-up:
- [ ] [cozystack/community](https://github.com/cozystack/community) -
follow-up:
### Release note
```release-note
fix(ci): a re-run of finalize no longer pushes the stable cozy-installer chart again, so cozy-installer:X.Y.Z keeps the digest of its first push
```
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **Chores**
* Stable installer chart versions are preserved once published.
Re-running a release will not replace an existing version; correcting a
published chart requires removing it from the registry before rerunning.
* If a version is missing, the release can publish it. Registry lookup
or publishing errors stop the release. When configured, the `latest` tag
is updated even if the versioned chart already exists.
* **Documentation**
* Clarified the policy for publishing stable chart versions and handling
existing charts.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->