-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tylertitsworth
committed
May 30, 2024
1 parent
d0ac53d
commit dfb1f81
Showing
1 changed file
with
28 additions
and
24 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 |
---|---|---|
|
@@ -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: | ||
|
@@ -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 }} |