mirror of
https://github.com/auricom/home-cluster.git
synced 2025-10-02 16:51:52 +02:00
flux-local update
This commit is contained in:
12
.github/workflows/flux-diff.yaml
vendored
12
.github/workflows/flux-diff.yaml
vendored
@@ -1,11 +1,11 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
||||
name: "Flux Diff"
|
||||
name: Flux Diff
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
paths: ["kubernetes/**"]
|
||||
branches: [main]
|
||||
paths: [kubernetes/**]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
|
||||
@@ -19,7 +19,7 @@ jobs:
|
||||
pull-requests: write
|
||||
strategy:
|
||||
matrix:
|
||||
resources: ["helmrelease", "kustomization"]
|
||||
resources: [helmrelease, kustomization]
|
||||
max-parallel: 4
|
||||
fail-fast: false
|
||||
steps:
|
||||
@@ -48,7 +48,7 @@ jobs:
|
||||
path: pull
|
||||
|
||||
- name: Diff Resources
|
||||
uses: docker://ghcr.io/allenporter/flux-local:main
|
||||
uses: docker://ghcr.io/allenporter/flux-local:v4.3.1
|
||||
with:
|
||||
args: >-
|
||||
--log-level DEBUG
|
||||
@@ -85,7 +85,7 @@ jobs:
|
||||
# Summarize matrix https://github.community/t/status-check-for-a-matrix-jobs/127354/7
|
||||
flux-diff-success:
|
||||
if: ${{ always() }}
|
||||
needs: ["flux-diff"]
|
||||
needs: [flux-diff]
|
||||
name: Flux Diff Successful
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
16
.github/workflows/flux-image-test.yaml
vendored
16
.github/workflows/flux-image-test.yaml
vendored
@@ -1,11 +1,11 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
||||
name: "Flux Image Test"
|
||||
name: Flux Image Test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
paths: ["kubernetes/**"]
|
||||
branches: [main]
|
||||
paths: [kubernetes/**]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
|
||||
@@ -48,7 +48,7 @@ jobs:
|
||||
path: pull
|
||||
|
||||
- name: Gather Images in Default Branch
|
||||
uses: docker://ghcr.io/allenporter/flux-local:main
|
||||
uses: docker://ghcr.io/allenporter/flux-local:v4.3.1
|
||||
with:
|
||||
args: >-
|
||||
get cluster
|
||||
@@ -58,7 +58,7 @@ jobs:
|
||||
--output-file default.yaml
|
||||
|
||||
- name: Gather Images in Pull Request Branch
|
||||
uses: docker://ghcr.io/allenporter/flux-local:main
|
||||
uses: docker://ghcr.io/allenporter/flux-local:v4.3.1
|
||||
with:
|
||||
args: >-
|
||||
get cluster
|
||||
@@ -86,12 +86,14 @@ jobs:
|
||||
images=$(jo -a $(grep -vf default.txt pull.txt))
|
||||
echo "images=${images}" >> $GITHUB_OUTPUT
|
||||
echo "${images}"
|
||||
echo "### Images" >> $GITHUB_STEP_SUMMARY
|
||||
echo "${images}" | jq -r 'to_entries[] | "* \(.value)"' >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
test-images:
|
||||
if: ${{ needs.extract-images.outputs.matrix != '[]' }}
|
||||
name: Test images
|
||||
runs-on: ubuntu-latest
|
||||
needs: ["extract-images"]
|
||||
needs: [extract-images]
|
||||
strategy:
|
||||
matrix:
|
||||
images: ${{ fromJSON(needs.extract-images.outputs.matrix) }}
|
||||
@@ -104,7 +106,7 @@ jobs:
|
||||
# Summarize matrix https://github.community/t/status-check-for-a-matrix-jobs/127354/7
|
||||
test-images-success:
|
||||
if: ${{ always() }}
|
||||
needs: ["test-images"]
|
||||
needs: [test-images]
|
||||
name: Test Images Successful
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
Reference in New Issue
Block a user