chore(deps): pin docker.io/rancher/system-upgrade-controller docker tag to 3cdbfdd #514
Workflow file for this run
This file contains 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
--- | |
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: "Flux Local" | |
on: | |
pull_request: | |
branches: ["main"] | |
# paths: ["kubernetes/**"] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
flux-test: | |
name: Flux Local Test | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Checkout Default Branch | |
uses: actions/checkout@v4 | |
with: | |
ref: "${{ github.event.repository.default_branch }}" | |
path: default | |
- name: Setup Flux CLI | |
uses: fluxcd/flux2/action@v2.4.0 | |
- uses: allenporter/flux-local/action/test@bfff4ac1f313c2ef82aed95a8dd5241c0ee0def6 # 6.0.2 | |
with: | |
path: ./kubernetes | |
enable-helm: true | |
enable-kyverno: false | |
debug: false | |
flux-diff: | |
name: Flux Local | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
strategy: | |
matrix: | |
resource: ["helmrelease", "kustomization"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Checkout Default Branch | |
uses: actions/checkout@v4 | |
with: | |
ref: "${{ github.event.repository.default_branch }}" | |
path: default | |
- name: Setup Flux CLI | |
uses: fluxcd/flux2/action@v2.4.0 | |
- uses: allenporter/flux-local/action/diff@bfff4ac1f313c2ef82aed95a8dd5241c0ee0def6 # 6.0.2 | |
id: diff | |
with: | |
live-branch: main | |
path: ./kubernetes | |
resource: ${{ matrix.resource }} | |
debug: false | |
- name: PR Comments (${{matrix.resource}}) | |
uses: mshick/add-pr-comment@v2 | |
if: ${{ steps.diff.outputs.diff != '' }} | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
message-failure: Unable to post diff for helmrelease | |
message: | | |
`````diff | |
${{ steps.diff.outputs.diff }} | |
` | |
flux-diff-success: | |
if: ${{ always() }} | |
needs: ["flux-diff", "flux-test"] | |
name: Flux Local Successful | |
runs-on: ubuntu-latest | |
steps: | |
- if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} | |
name: Check matrix status | |
run: exit 1 |