Skip to content

Commit 5f1ed5c

Browse files
authored
Merge pull request #66 from olamilekan000/move-packaging-helm-to-index-step
update index flow
2 parents adbb730 + aea1134 commit 5f1ed5c

4 files changed

Lines changed: 15 additions & 32 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,6 @@ jobs:
3939
helm dependency update .
4040
echo "Dependencies downloaded successfully."
4141
42-
- name: Package Helm chart
43-
run: |
44-
mkdir -p .cr-release-packages
45-
helm package . --destination .cr-release-packages
46-
echo "Packaged chart(s):"
47-
ls -lh .cr-release-packages/
48-
49-
- name: Copy packaged chart to repository root
50-
run: |
51-
cp .cr-release-packages/*.tgz .
52-
echo "Copied chart package(s) to repository root:"
53-
ls -lh *.tgz
54-
55-
- name: Cleanup large dependency folders
56-
run: |
57-
rm -rf charts/
58-
echo "Cleaned up charts/ directory."
59-
6042
- name: Install chart-releaser
6143
run: |
6244
CR_VERSION="1.8.1"
@@ -66,27 +48,29 @@ jobs:
6648
rm -f cr.tar.gz
6749
cr version
6850
69-
- name: Upload chart to GitHub Releases
51+
- name: Upload packaged chart and update index
7052
env:
7153
CR_TOKEN: ${{ secrets.TEMP_PAT }}
7254
run: |
55+
set -e
7356
owner=$(cut -d '/' -f 1 <<< "$GITHUB_REPOSITORY")
7457
repo=$(cut -d '/' -f 2 <<< "$GITHUB_REPOSITORY")
7558
59+
mkdir -p .cr-release-packages
60+
61+
echo "Packaging Helm chart..."
62+
helm package . --destination .cr-release-packages
63+
echo "Packaged chart(s):"
64+
ls -lh .cr-release-packages/
65+
66+
echo "Uploading chart to GitHub Releases..."
7667
cr upload \
7768
--owner "$owner" \
7869
--git-repo "$repo" \
7970
--token "$CR_TOKEN" \
8071
--release-name-template "convoy-{{ .Version }}"
8172
82-
- name: Update index and push to GitHub Pages
83-
env:
84-
CR_TOKEN: ${{ secrets.TEMP_PAT }}
85-
run: |
86-
owner=$(cut -d '/' -f 1 <<< "$GITHUB_REPOSITORY")
87-
repo=$(cut -d '/' -f 2 <<< "$GITHUB_REPOSITORY")
88-
89-
# update index and push to github pages
73+
echo "Updating index and pushing to gh-pages..."
9074
git config user.email "$owner@users.noreply.github.com"
9175
git config user.name "$owner"
9276
@@ -96,6 +80,5 @@ jobs:
9680
--token "$CR_TOKEN" \
9781
--release-name-template "convoy-{{ .Version }}" \
9882
--index-path ./index.yaml \
99-
--package-path ./ \
10083
--charts-repo "https://$owner.github.io/$repo" \
10184
--push

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: convoy
33
description: Open Source Webhooks Gateway
44
type: application
5-
version: "3.7.0"
5+
version: "3.7.1"
66
appVersion: "25.9.2"
77
keywords:
88
- Webhooks

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# convoy
22

3-
![Version: 3.7.0](https://img.shields.io/badge/Version-3.7.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 25.9.2](https://img.shields.io/badge/AppVersion-25.9.2-informational?style=flat-square)
3+
![Version: 3.7.1](https://img.shields.io/badge/Version-3.7.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 25.9.2](https://img.shields.io/badge/AppVersion-25.9.2-informational?style=flat-square)
44

55
Open Source Webhooks Gateway
66

index.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ entries:
2727
name: convoy
2828
type: application
2929
urls:
30-
- https://frain-dev.github.io/helm-charts/convoy-3.7.0.tgz
31-
version: 3.7.0
30+
- https://frain-dev.github.io/helm-charts/convoy-3.7.1.tgz
31+
version: 3.7.1
3232
postgresql:
3333
- annotations:
3434
category: Database

0 commit comments

Comments
 (0)