-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 972 Bytes
/
flux-local.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
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 }}
`````