Skip to content

Commit

Permalink
Final chart publish fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andreev-io committed Jan 23, 2025
1 parent 13b6300 commit b65dfd2
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/kubenetmon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,18 @@ jobs:
tag_name: latest
generate_release_notes: true

- name: Install Skopeo
run: |
sudo apt-get update
sudo apt-get install -y skopeo
- name: Push charts to GHCR
run: |
for chart in .cr-release-packages/*.tgz; do
# Push with the commit SHA
helm push $chart oci://ghcr.io/clickhouse/kubenetmon/charts --version $VERSION
# Push with the "latest" tag
helm push $chart oci://ghcr.io/clickhouse/kubenetmon/charts --version latest
CHART_NAME=$(helm show chart $chart | grep '^name:' | awk '{print $2}')
CHART_VERSION=$(helm show chart $chart | grep '^version:' | awk '{print $2}')
helm push $chart oci://ghcr.io/clickhouse/kubenetmon/$CHART_NAME/charts
skopeo copy \
oci://ghcr.io/clickhouse/kubenetmon/$CHART_NAME/charts:$CHART_VERSION \
oci://ghcr.io/clickhouse/kubenetmon/$CHART_NAME/charts:latest
done

0 comments on commit b65dfd2

Please sign in to comment.