Skip to content

Commit

Permalink
Update kubectl validate
Browse files Browse the repository at this point in the history
  • Loading branch information
benfu-verses committed Jul 1, 2024
1 parent ab54f4d commit 447e2d1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,28 @@ jobs:
# - charts/chart2
run: |
echo "matrix="$(ls -1 charts/ | jq -Rncr '{ chart: [ inputs | "charts/\(.)" ] }')"" >> "${GITHUB_OUTPUT}"
- name: Compute includes
id: compute-includes
run: |-
tee '${{ runner.temp }}/matrix.json' <<EOF
{
"matrix": ${MATRIX},
"includes": [
{
"chart": "charts/genius-core",
"values-file": "registry.develop.verses.io/helm-internal",
},
{
"chart": "charts/genius-core-admin",
"values-file": "ghcr.io/versestech/helm-charts",
}
]
}
EOF
cat '${{ runner.temp }}/matrix.json'
echo "$(cat '${{ runner.temp }}/matrix.json' | jq -rc '[ .matrix as $matrix | .includes[] | select(.chart as $key | $matrix | index($key)) ]')"
echo "includes="$(cat '${{ runner.temp }}/matrix.json' | jq -rc '[ .matrix as $matrix | .includes[] | select(.chart as $key | $matrix | index($key)) ]')"" >> "${GITHUB_OUTPUT}"
env:
MATRIX: ${{ steps.generate-matrix.outputs.matrix }}

0 comments on commit 447e2d1

Please sign in to comment.