Skip to content

Commit

Permalink
Merge branch 'kubeagi:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Lanture1064 authored Jul 24, 2023
2 parents 9119d0f + 34f36f4 commit cd6b861
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/auto_request_review.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
reviewers:
defaults:
- nkwangleiGIT
- bjwswang
- 0xff-dev
- Abirdcfly
- Lanture1064

options:
ignore_draft: true
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/lint_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Lint and Test Charts

on: pull_request

jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.11.2

- uses: actions/setup-python@v4
with:
python-version: "3.9"
check-latest: true

- name: Set up chart-testing
uses: helm/[email protected]

- name: 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
# https://github.com/helm/chart-testing-action
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch ${{ github.event.repository.default_branch }}

# FIXME: once component dependency much more clear, we can enable this
# - name: Create kind cluster
# if: steps.list-changed.outputs.changed == 'true'
# uses: helm/[email protected]

# - name: Run chart-testing (install)
# if: steps.list-changed.outputs.changed == 'true'
# run: ct install --target-branch ${{ github.event.repository.default_branch }}
38 changes: 38 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release Charts

on:
push:
branches:
- main

jobs:
release:
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v3

# https://github.com/helm/chart-releaser-action
- name: Run chart-releaser
uses: helm/[email protected]
with:
charts_dir: charts
charts_repo_url: https://kubeagi.github.io/arcadia/
# FIXME: uncomment this once customized configuration is needed
# config: cr.yaml
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit cd6b861

Please sign in to comment.