-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github action for helm chart release and verify (#12)
Signed-off-by: chandankumar4 <chandan.kr404@gmail.com>
- Loading branch information
1 parent
5cc34bf
commit 9b54d2a
Showing
5 changed files
with
96 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Step 1: Checkout" | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: "Step 2: Set up Helm" | ||
uses: azure/setup-helm@v4.2.0 | ||
with: | ||
version: v3.14.4 | ||
|
||
- name: "Step 3: Setup puthon" | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
check-latest: true | ||
|
||
- name: "Step 4: Set up chart-testing" | ||
uses: helm/chart-testing-action@v2.6.1 | ||
|
||
- name: "Step 5: Run chart-testing (list-changed)" | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) | ||
if [[ -n "$changed" ]]; then | ||
echo "changed=true" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: "Step 6: Run lint" | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: ct lint --target-branch ${{ github.event.repository.default_branch }} | ||
|
||
- name: "Step 7: Create kind cluster" | ||
if: steps.list-changed.outputs.changed == 'true' | ||
uses: helm/kind-action@v1.10.0 | ||
|
||
- name: "Step 7: Run chart install" | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: ct install --target-branch ${{ github.event.repository.default_branch }} | ||
|
||
release: | ||
if: github.ref == 'refs/heads/main' | ||
needs: | ||
- lint-test | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Step 1: 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: "Step 2: Install Helm" | ||
uses: azure/setup-helm@v4 | ||
|
||
- name: "Step 3: Run chart-releaser" | ||
uses: helm/chart-releaser-action@v1.6.0 | ||
with: | ||
charts_dir: charts | ||
skip_existing: true | ||
pages_branch: gh-pages | ||
env: | ||
CR_TOKEN: "${{ secrets.ACCESS_TOKEN }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
SHELL:=/bin/bash | ||
|
||
# Latest version of Numaflow | ||
NUMAFLOW_VERSION=v1.2.1 | ||
|
||
# Update the numaflow CRDs | ||
.PHONY: update-crds | ||
update-crds: | ||
NUMAFLOW_VERSION=${NUMAFLOW_VERSION} ./scripts/numaflow-release.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Download numaflow CRDs | ||
wget -O charts/numaflow/crds/isbsvcs.yaml https://raw.githubusercontent.com/numaproj/numaflow/${NUMAFLOW_VERSION}/config/base/crds/full/numaflow.numaproj.io_interstepbufferservices.yaml | ||
wget -O charts/numaflow/crds/pipelines.yaml https://raw.githubusercontent.com/numaproj/numaflow/${NUMAFLOW_VERSION}/config/base/crds/full/numaflow.numaproj.io_pipelines.yaml | ||
wget -O charts/numaflow/crds/vertices.yaml https://raw.githubusercontent.com/numaproj/numaflow/${NUMAFLOW_VERSION}/config/base/crds/full/numaflow.numaproj.io_vertices.yaml |