feat(container): update image ghcr.io/home-operations/home-assistant ( 2026.4.1 ➔ 2026.6.4 ) #1282
This file contains hidden or 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
| --- | |
| name: Flux Local | |
| on: | |
| pull_request: | |
| branches: ["main"] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| filter: | |
| name: Flux Local - Filter | |
| runs-on: ubuntu-latest | |
| outputs: | |
| changed-files: ${{ steps.changed-files.outputs.changed_files }} | |
| clusters: ${{ steps.clusters.outputs.clusters }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: false | |
| sparse-checkout: k8s/clusters | |
| - name: Get Changed Files | |
| id: changed-files | |
| uses: bjw-s-labs/action-changed-files@a9a36fb08ce06db9b02fbd8026cc2c0945eb9841 # v0.6.0 | |
| with: | |
| patterns: k8s/**/* | |
| - name: Generate Cluster Matrix | |
| id: clusters | |
| run: | | |
| clusters=$(ls -d k8s/clusters/*/ | xargs -n1 basename | jq -R -s -c 'split("\n") | map(select(length > 0))') | |
| echo "clusters=$clusters" >> $GITHUB_OUTPUT | |
| test: | |
| if: ${{ needs.filter.outputs.changed-files != '[]' }} | |
| needs: filter | |
| name: Flux Local - Test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| cluster: ${{ fromJson(needs.filter.outputs.clusters) }} | |
| fail-fast: false | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: false | |
| - name: Run flux-local test | |
| run: | | |
| docker run --rm \ | |
| -v "${{ github.workspace }}:/github/workspace" \ | |
| ghcr.io/allenporter/flux-local:v8.0.1 \ | |
| test \ | |
| --all-namespaces \ | |
| --enable-helm \ | |
| --skip-invalid-helm-release-paths \ | |
| --sources "flux-system" \ | |
| --path /github/workspace/k8s/clusters/${{ matrix.cluster }} || true | |
| diff: | |
| if: ${{ needs.filter.outputs.changed-files != '[]' }} | |
| needs: filter | |
| name: Flux Local - Diff | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| strategy: | |
| matrix: | |
| cluster: ${{ fromJson(needs.filter.outputs.clusters) }} | |
| resource: ["helmrelease", "kustomization"] | |
| fail-fast: false | |
| steps: | |
| - name: Checkout Pull Request Branch | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| path: pull | |
| persist-credentials: false | |
| - name: Checkout Default Branch | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| path: default | |
| persist-credentials: false | |
| ref: "${{ github.event.repository.default_branch }}" | |
| - name: Run flux-local diff | |
| run: | | |
| docker run --rm \ | |
| -v "${{ github.workspace }}:/github/workspace" \ | |
| -w /github/workspace \ | |
| ghcr.io/allenporter/flux-local:v8.0.1 \ | |
| diff ${{ matrix.resource }} \ | |
| --unified 6 \ | |
| --path /github/workspace/pull/k8s/clusters/${{ matrix.cluster }} \ | |
| --path-orig /github/workspace/default/k8s/clusters/${{ matrix.cluster }} \ | |
| --strip-attrs "helm.sh/chart,checksum/config,app.kubernetes.io/version,chart" \ | |
| --limit-bytes 10000 \ | |
| --all-namespaces \ | |
| --sources "flux-system" \ | |
| --output-file diff.patch || true | |
| - name: Generate Diff | |
| id: diff | |
| run: | | |
| echo 'diff<<EOF' >> $GITHUB_OUTPUT | |
| cat diff.patch >> $GITHUB_OUTPUT | |
| echo 'EOF' >> $GITHUB_OUTPUT | |
| - if: ${{ steps.diff.outputs.diff != '' }} | |
| name: Add Comment | |
| uses: marocchino/sticky-pull-request-comment@0ea0beb66eb9baf113663a64ec522f60e49231c0 # v3.0.4 | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| header: ${{ github.event.pull_request.number }}/kubernetes/${{ matrix.cluster }}/${{ matrix.resource }} | |
| message: | | |
| ## ${{ matrix.cluster }} - ${{ matrix.resource }} | |
| ```diff | |
| ${{ steps.diff.outputs.diff }} | |
| ``` |