Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .cr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
owner: Itential
git-repo: iag4-helm
charts-dir: charts
target-branch: main
pages-branch: gh-pages
package-path: .cr-release-packages
index-path: index.yaml
skip-existing: true
generate-release-notes: true
make-release-latest: true
4 changes: 2 additions & 2 deletions .github/workflows/helm-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: helm plugin install https://github.com/helm-unittest/helm-unittest

- name: Lint Helm chart
run: helm lint .
run: helm lint charts/iag4

- name: Run Helm unit tests
run: helm unittest . --strict
run: helm unittest --strict charts/iag4
84 changes: 84 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Release Charts

on:
push:
branches:
- main
paths:
- 'charts/**'

permissions:
contents: write
pages: write
id-token: write

jobs:
# Create the release
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"

- name: Install Helm
uses: azure/setup-helm@v4
with:
version: v3.13.0

- name: Add dependency chart repos
run: |
helm repo add jetstack https://charts.jetstack.io
helm repo add external-dns https://kubernetes-sigs.github.io/external-dns/
helm repo update

- name: Update chart dependencies
run: |
for chart in charts/*/; do
if [ -f "$chart/Chart.yaml" ]; then
echo "Updating dependencies for $chart"
helm dependency update "$chart"
fi
done

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.7.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
config: .cr.yaml

# Update the Github pages
pages:
needs: release
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout gh-pages
uses: actions/checkout@v4
with:
ref: gh-pages
fetch-depth: 0

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: .

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ values-*.local.yaml
secrets/
*.secret.yaml
lab-setup/
charts/
charts/*/charts/*.tgz
.cr-release-packages/
*.tgz
File renamed without changes.
6 changes: 5 additions & 1 deletion Chart.yaml → charts/iag4/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.1
version: 1.0.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "4.3.4"

home: https://github.com/itential/iag4-helm
sources:
- https://github.com/itential/iag4-helm

dependencies:
- name: cert-manager
version: "1.12.3"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.