chore(deps): update helmrelease to helm.toolkit.fluxcd.io/v2 #1621
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
--- | |
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: "Kubeconform" | |
on: | |
pull_request: | |
branches: ["main"] | |
paths: | |
- "kubernetes/**" | |
env: | |
SCHEMA_DIR: /home/runner/crds | |
jobs: | |
changed-clusters: | |
name: Changed Clusters | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.changed-clusters.outputs.all_changed_and_modified_files }} | |
steps: | |
- name: Checkout Default Branch | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 0 | |
- name: Get Changed Clusters | |
id: changed-clusters | |
uses: tj-actions/changed-files@4edd678ac3f81e2dc578756871e4d00c19191daf # v45 | |
with: | |
files: kubernetes/** | |
dir_names: true | |
dir_names_max_depth: 2 | |
matrix: true | |
- name: List All Changed Clusters | |
env: | |
ALL_CHANGED_CLUSTERS: ${{ steps.changed-clusters.outputs.all_changed_and_modified_files }} | |
run: echo "$ALL_CHANGED_CLUSTERS" | |
kubeconform: | |
name: Kubeconform | |
runs-on: ubuntu-latest | |
needs: ["changed-clusters"] | |
strategy: | |
matrix: | |
paths: ${{ fromJSON(needs.changed-clusters.outputs.matrix) }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Homebrew | |
uses: Homebrew/actions/setup-homebrew@master | |
- name: Setup Tools | |
shell: bash | |
run: brew install kubeconform kustomize | |
- name: Setup QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 | |
- name: Setup Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1 | |
- name: Extract files from container image | |
shell: bash | |
run: | | |
mkdir -p ${{ env.SCHEMA_DIR }} | |
docker run --rm \ | |
-v ${{ env.SCHEMA_DIR }}:/crds \ | |
-u $(id -u) \ | |
--entrypoint /bin/sh \ | |
ghcr.io/martinohmann/kubernetes-schemas:latest \ | |
-c "cp -r /usr/share/nginx/html/* /crds" | |
- name: Run kubeconform | |
shell: bash | |
run: bash ./.github/scripts/kubeconform.sh ${{ matrix.paths }} ${{ env.SCHEMA_DIR }} |