Skip to content

Commit

Permalink
ci: add flux-local (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
timtorChen authored Dec 18, 2024
1 parent c2beeef commit ef73057
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/flux-local.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: flux-local

on:
pull_request:

jobs:
lint:
name: Flux local
runs-on: ubuntu-latest
strategy:
matrix:
resource: ["helmrelease", "kustomization"]
steps:
- name: Setup Flux CLI
uses: fluxcd/flux2/[email protected]
- uses: allenporter/flux-local/action/[email protected]
id: diff
with:
path: kubernetes/flux-system
sources: homelab
resource: ${{ matrix.resource }}
- name: PR Comments
uses: mshick/add-pr-comment@v2
if: ${{ steps.diff.outputs.diff != '' }}
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
message-id: "${{ github.event.pull_request.number }}/${{ matrix.resource }}"
message-failure: flux-local diff is not successful
message: |
`````diff
${{ steps.diff.outputs.diff }}
`````
2 changes: 1 addition & 1 deletion .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: renovatebot/[email protected]
env:
LOG_LEVEL: debug
RENOVATE_REPOSITORIES: timtorChen/homelab
RENOVATE_REPOSITORIES: ${{ github.repository }}
RENOVATE_PLATFORM: github
RENOVATE_USERNAME: timtor-bot
RENOVATE_GIT_AUTHOR: Timtor-bot <[email protected]>
Expand Down

0 comments on commit ef73057

Please sign in to comment.