From 622449f0ad511c6c1feda62df9a075b52dc510ed Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Mon, 1 Jan 2024 15:43:36 +0100 Subject: [PATCH] again --- .github/workflows/common.release.yaml | 4 +++- library/common/Chart.yaml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/common.release.yaml b/.github/workflows/common.release.yaml index a00f97e4..2012bbd1 100644 --- a/.github/workflows/common.release.yaml +++ b/.github/workflows/common.release.yaml @@ -67,7 +67,9 @@ jobs: if [ -z "${pkg:-}" ]; then break fi - name="${pkg%%-[0-9].[0-9].[0-9].tgz}" + filename=$(basename "$pkg") + name="${filename%%-[0-9].[0-9].[0-9].tgz}" + echo "uploading $name" helm push "${pkg}" oci://quay.io/truecharts/$name || echo "failed to upload $pkg to OCI" curl -X POST -H "Content-Type: application/json" -d '{"visibility": "public"}' -H "Authorization: Bearer ${{ secrets.QUAY_TCCR_API_TOKEN }}" "https://quay.io/api/v1/repository/tccr/$pkg/changevisibility" || echo "failed to set $pkg to public on OCI" done diff --git a/library/common/Chart.yaml b/library/common/Chart.yaml index 43c85330..35150158 100644 --- a/library/common/Chart.yaml +++ b/library/common/Chart.yaml @@ -15,4 +15,4 @@ maintainers: name: common sources: null type: library -version: 17.2.6 +version: 17.2.7