Skip to content

Commit

Permalink
prepare for move to prt
Browse files Browse the repository at this point in the history
  • Loading branch information
tylertitsworth committed May 30, 2024
1 parent d0ac53d commit dfb1f81
Showing 1 changed file with 28 additions and 24 deletions.
52 changes: 28 additions & 24 deletions .github/workflows/chart-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
name: Helm Chart CI
on:
pull_request: null
# pull_request_target:
# types: [opened, edited, reopened, synchronize]
# branches: [main]
merge_group: null
permissions: read-all
concurrency:
Expand All @@ -24,27 +27,28 @@ jobs:
helm-ci:
runs-on: kubectl
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: azure/setup-kubectl@v4
- uses: azure/[email protected]
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Setup chart-testing
uses: helm/[email protected]
- name: Get chart diff
id: changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --config .github/ct.yaml)
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Helm Lint, Install, and Test
if: steps.changed.outputs.changed == 'true'
run: |
kubectl config use-context kubeflow
ct lint-and-install --target-branch ${{ github.event.repository.default_branch }} --config .github/ct.yaml --debug --namespace helm-ci
env:
KUBECONFIG: ${{ secrets.KUBECONFIG_PATH }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
# ref: ${{ 'refs/pull/${{ github.event.number }}/merge' || 'main' }}
- uses: azure/setup-kubectl@v4
- uses: azure/[email protected]
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Setup chart-testing
uses: helm/[email protected]
- name: Get chart diff
id: changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --config .github/ct.yaml)
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Helm Lint, Install, and Test
if: steps.changed.outputs.changed == 'true'
run: |
kubectl config use-context kubeflow
ct lint-and-install --target-branch ${{ github.event.repository.default_branch }} --config .github/ct.yaml --debug --namespace helm-ci
env:
KUBECONFIG: ${{ secrets.KUBECONFIG_PATH }}

0 comments on commit dfb1f81

Please sign in to comment.