Skip to content

Commit

Permalink
update ci (#180)
Browse files Browse the repository at this point in the history
Signed-off-by: André Bauer <andre.bauer@staffbase.com>
  • Loading branch information
monotek authored Apr 26, 2024
1 parent fd96442 commit 734e620
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 12 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- 'charts/**/**'

env:
helm-version: "v3.12.2"
kubeconform-version: "v0.6.3"
helm-version: "v3.14.4"
kubeconform-version: "v0.6.4"

jobs:
lint-chart:
Expand Down Expand Up @@ -55,9 +55,9 @@ jobs:
strategy:
matrix:
k8s:
- v1.25.11
- v1.26.6
- v1.27.3
- v1.27.10
- v1.28.6
- v1.29.1

steps:
- name: Checkout
Expand All @@ -76,15 +76,15 @@ jobs:

install-chart:
name: install-chart
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs:
- kubeconform-chart
strategy:
matrix:
k8s:
- v1.25.11
- v1.26.6
- v1.27.3
- v1.27.10
- v1.28.6
- v1.29.1
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
26 changes: 24 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ on:
- main

env:
helm-version: "v3.10.0"
helm-version: "v3.14.4"

jobs:
release:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -27,7 +27,29 @@ jobs:
with:
version: "${{ env.helm-version }}"

- name: Add dependency chart repos
run: helm repo add bitnami https://charts.bitnami.com/bitnami

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
env:
CR_GENERATE_RELEASE_NOTES: true
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

# see https://github.com/helm/chart-releaser/issues/183
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push chart to GHCR
run: |
shopt -s nullglob
for pkg in .cr-release-packages/*; do
if [ -z "${pkg:-}" ]; then
break
fi
helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts"
done
2 changes: 1 addition & 1 deletion .github/workflows/sync-readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

Expand Down

0 comments on commit 734e620

Please sign in to comment.