Public Access
Update Helm chart paths in workflows and documentation to avoid ambiguity in Gitea's package registry
This commit is contained in:
@@ -8,6 +8,12 @@ name: Release chart
|
||||
# metadata bookstack-chart uses: Helm rewrites `+` to `_` on OCI push (and
|
||||
# back on pull), which breaks listing in some third-party tooling (e.g.
|
||||
# Rancher). The aptly version lives in appVersion instead.
|
||||
#
|
||||
# The chart is pushed under f.weber/charts/aptly, NOT f.weber/aptly: Gitea's
|
||||
# package registry stores both container images and Helm OCI charts as
|
||||
# generic OCI artifacts, and a chart sharing the exact repository path with
|
||||
# the container image of the same name makes the package listing/type
|
||||
# ambiguous. A distinct `charts/` path keeps the two package kinds apart.
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
@@ -43,7 +49,7 @@ jobs:
|
||||
|
||||
- name: Idempotency check — refuse to overwrite an existing chart version
|
||||
run: |
|
||||
if helm show chart "oci://git.morlana.online/f.weber/aptly" --version "${{ steps.version.outputs.version }}" >/dev/null 2>&1; then
|
||||
if helm show chart "oci://git.morlana.online/f.weber/charts/aptly" --version "${{ steps.version.outputs.version }}" >/dev/null 2>&1; then
|
||||
echo "::error::chart version ${{ steps.version.outputs.version }} already exists in the registry. Bump the version and re-tag — this workflow never overwrites a published chart."
|
||||
exit 1
|
||||
fi
|
||||
@@ -80,7 +86,7 @@ jobs:
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_TOKEN }}" | helm registry login git.morlana.online \
|
||||
--username "${{ secrets.REGISTRY_USER }}" --password-stdin
|
||||
helm push "aptly-${{ steps.version.outputs.version }}.tgz" oci://git.morlana.online/f.weber
|
||||
helm push "aptly-${{ steps.version.outputs.version }}.tgz" oci://git.morlana.online/f.weber/charts
|
||||
|
||||
- name: Create Gitea release with chart artifacts
|
||||
uses: softprops/action-gh-release@v2
|
||||
@@ -88,7 +94,7 @@ jobs:
|
||||
tag_name: ${{ gitea.ref_name }}
|
||||
name: "aptly chart ${{ steps.version.outputs.version }}"
|
||||
body: |
|
||||
`helm pull oci://git.morlana.online/f.weber/aptly --version ${{ steps.version.outputs.version }}`
|
||||
`helm pull oci://git.morlana.online/f.weber/charts/aptly --version ${{ steps.version.outputs.version }}`
|
||||
files: |
|
||||
aptly-${{ steps.version.outputs.version }}.tgz
|
||||
aptly-${{ steps.version.outputs.version }}.tgz.prov
|
||||
|
||||
Reference in New Issue
Block a user