Skip to content

Commit

Permalink
chore: test out flux-local docker image
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed Dec 22, 2023
1 parent a0b108a commit a4c93b3
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/flux-diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,39 +86,37 @@ jobs:
# path: "${{ matrix.paths }}"
# resource: "${{ matrix.resources }}"

- name: Checkout PR branch
- name: Checkout Live Branch
uses: actions/checkout@v4
with:
token: "${{ steps.app-token.outputs.token }}"
path: pr

- name: Checkout Live Branch
- name: Checkout PR branch
uses: actions/checkout@v4
with:
token: "${{ steps.app-token.outputs.token }}"
ref: main
path: live
path: pr

- name: Diff Resources
uses: docker://ghcr.io/allenporter/flux-local:main
with:
args: >-
diff ${{ matrix.resources }}
--unified 6
--path-orig ${{ matrix.paths }}
--path pr/${{ matrix.paths }}
--path-orig live/${{ matrix.paths }}
--strip-attrs "helm.sh/chart,checksum/config,app.kubernetes.io/version,chart"
--limit-bytes 10000
--all-namespaces
--sources "home-kubernetes"
--output-file diff.txt
--output-file diff.patch
- name: Generate Diff
id: diff
run: |
cat diff.txt
cat diff.patch
echo "diff<<EOF" >> $GITHUB_OUTPUT
cat diff.txt >> $GITHUB_OUTPUT
cat diff.patch >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- if: ${{ steps.diff.outputs.diff != '' }}
Expand Down

0 comments on commit a4c93b3

Please sign in to comment.