Skip to content

feat(container): update image ghcr.io/home-operations/gatus-sidecar ( 0.0.19 → 0.3.6 ) #2018

feat(container): update image ghcr.io/home-operations/gatus-sidecar ( 0.0.19 → 0.3.6 )

feat(container): update image ghcr.io/home-operations/gatus-sidecar ( 0.0.19 → 0.3.6 ) #2018

Workflow file for this run

---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Flux Local"
on:
pull_request:
branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
jobs:
pre-job:
name: Flux Local - Pre-Job
runs-on: ubuntu-latest
outputs:
changed-files: ${{ steps.changed-files.outputs.changed_files }}
steps:
- name: Get Changed Files
id: changed-files
uses: bjw-s-labs/action-changed-files@a9a36fb08ce06db9b02fbd8026cc2c0945eb9841 # v0.6.0
with:
patterns: kubernetes/**/*
test:
name: Flux Local - Test
needs: pre-job
runs-on: ubuntu-latest
if: ${{ needs.pre-job.outputs.changed-files != '[]' }}
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Run flux-local test
uses: docker://ghcr.io/allenporter/flux-local:v8.0.1
with:
args: test --enable-helm --all-namespaces --path /github/workspace/kubernetes/flux/cluster -v
diff:
name: Flux Local - Diff
needs: pre-job
runs-on: ubuntu-latest
if: ${{ needs.pre-job.outputs.changed-files != '[]' }}
permissions:
contents: read
pull-requests: write
strategy:
matrix:
resources: ["helmrelease", "kustomization"]
max-parallel: 4
fail-fast: false
steps:
- name: Checkout Pull Request Branch
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
path: pull
- name: Checkout Default Branch
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: "${{ github.event.repository.default_branch }}"
path: default
- name: Run flux-local diff
uses: docker://ghcr.io/allenporter/flux-local:v8.0.1
with:
args: >-
diff ${{ matrix.resources }}
--unified 6
--path /github/workspace/pull/kubernetes/flux/cluster
--path-orig /github/workspace/default/kubernetes/flux/cluster
--strip-attrs "helm.sh/chart,checksum/config,app.kubernetes.io/version,chart"
--limit-bytes 10000
--all-namespaces
--sources "flux-system"
--output-file diff.patch
- name: Generate Diff
id: diff
run: |
echo 'diff<<EOF' >> $GITHUB_OUTPUT
cat diff.patch >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
- name: Generate Token
if: ${{ steps.diff.outputs.diff != '' }}
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
id: app-token
with:
app-id: "${{ secrets.BOT_APP_ID }}"
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
- name: Add Comment
if: ${{ steps.diff.outputs.diff != '' }}
uses: marocchino/sticky-pull-request-comment@0ea0beb66eb9baf113663a64ec522f60e49231c0 # v3.0.4
with:
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}"
header: "${{ github.event.pull_request.number }}/kubernetes/${{ matrix.resources }}"
message: |
```diff
${{ steps.diff.outputs.diff }}
```
flux-local-status:
name: Flux Local - Success
needs: ["test", "diff"]
runs-on: ubuntu-latest
if: ${{ !cancelled() }}
steps:
- name: Any jobs failed?
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1
- name: All jobs passed or skipped?
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: echo "All jobs passed or skipped" && echo "${{ toJSON(needs.*.result) }}"