Skip to content

Commit

Permalink
use yq for helm repo add
Browse files Browse the repository at this point in the history
  • Loading branch information
momentmaker committed Apr 17, 2024
1 parent 5bad1e6 commit 2034e04
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,22 @@ on:
- ".github/workflows/helm-chart.yml"

jobs:
add-helm-repos:
runs-on: ubuntu-latest
steps:
- name: Add repositories
run: |
helm repo add mockserver https://www.mock-server.com
helm repo add opentelemetry-collector https://open-telemetry.github.io/opentelemetry-helm-charts
helm repo add tempo https://grafana.github.io/helm-charts
helm repo add grafana https://grafana.github.io/helm-charts
ci-lint-helm-charts:
needs: add-helm-repos
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
actions: read
steps:
- name: Setup yq
uses: frenck/action-setup-yq@c4b5be8b4a215c536a41d436757d9feb92836d4f #v1.0.2
- name: Add helm repos
shell: bash
working-directory: charts/chainlink-cluster
run: |
if [[ -f "./Chart.lock" ]]; then
yq --indent 0 '.dependencies | map(["helm", "repo", "add", .name, .repository] | join(" ")) | .[]' "./Chart.lock" | sh --;
fi
- name: ci-lint-helm-charts
uses: smartcontractkit/.github/actions/ci-lint-charts@6b08487b176ef7cad086526d0b54ddff6691c044 # [email protected]
with:
Expand All @@ -40,6 +38,15 @@ jobs:
needs: add-helm-repos
runs-on: ubuntu-latest
steps:
- name: Setup yq
uses: frenck/action-setup-yq@c4b5be8b4a215c536a41d436757d9feb92836d4f #v1.0.2
- name: Add helm repos
shell: bash
working-directory: charts/chainlink-cluster
run: |
if [[ -f "./Chart.lock" ]]; then
yq --indent 0 '.dependencies | map(["helm", "repo", "add", .name, .repository] | join(" ")) | .[]' "./Chart.lock" | sh --;
fi
- name: ci-kubeconform
uses: smartcontractkit/.github/actions/ci-kubeconform@re-2490/add-ci-kubeform # TODO pin specific version once released
with:
Expand Down

0 comments on commit 2034e04

Please sign in to comment.