fix(container): update image victoria-metrics-k8s-stack ( 0.61.8 → 0.61.10 ) #817
Workflow file for this run
This file contains hidden or 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: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
filter-changes: | |
name: Filter changes | |
runs-on: ubuntu-latest | |
outputs: | |
changed-files: ${{ steps.changed-files.outputs.changed_files }} | |
steps: | |
- name: Get changed files | |
id: changed-files | |
uses: step-security/changed-files@95b56dadb92a30ca9036f16423fd3c088a71ee94 # v46.0.5 | |
with: | |
patterns: |- | |
kubernetes/**/* | |
test: | |
if: ${{ needs.filter-changes.outputs.changed-files != '[]' }} | |
name: Flux Local Test | |
runs-on: ubuntu-latest | |
needs: | |
- filter-changes | |
steps: | |
- name: Checkout | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
persist-credentials: false | |
- name: Run flux-local test | |
uses: docker://ghcr.io/allenporter/flux-local:v7.10.1 | |
with: | |
args: test --enable-helm --all-namespaces --path /github/workspace/setup/flux/cluster -v | |
diff: | |
if: ${{ needs.filter-changes.outputs.changed-files != '[]' }} | |
name: Flux Local Diff | |
runs-on: ubuntu-latest | |
needs: | |
- filter-changes | |
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
path: pull | |
persist-credentials: false | |
- name: Checkout Default Branch | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
ref: "${{ github.event.repository.default_branch }}" | |
path: default | |
persist-credentials: false | |
- name: Run flux-local diff | |
uses: docker://ghcr.io/allenporter/flux-local:v7.10.1 | |
with: | |
args: >- | |
diff ${{ matrix.resources }} | |
--unified 6 | |
--path /github/workspace/pull/setup/flux/cluster | |
--path-orig /github/workspace/default/setup/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' | |
cat diff.patch | |
echo EOF | |
} >> "${GITHUB_OUTPUT}"; | |
{ | |
echo "## Flux ${{ matrix.resources }} diff" | |
echo '```diff' | |
cat diff.patch | |
echo '```' | |
} >> "${GITHUB_STEP_SUMMARY}" | |
- if: ${{ steps.diff.outputs.diff != '' }} | |
name: Generate Token | |
id: generate_token | |
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4 | |
with: | |
app-id: ${{ secrets.RENOVATE_APP_ID }} | |
private-key: ${{ secrets.RENOVATE_PRIVATE_KEY }} | |
- if: ${{ steps.diff.outputs.diff != '' }} | |
name: Add Comment | |
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4 | |
with: | |
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | |
header: ${{ github.event.pull_request.number }}/kubernetes/${{ matrix.resource }} | |
message: | | |
```diff | |
${{ steps.diff.outputs.diff }} | |
``` | |
flux-local-success: | |
needs: | |
- test | |
- diff | |
if: ${{ !cancelled() }} | |
name: Flux Local successful | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check job status | |
if: ${{ contains(needs.*.result, 'failure') }} | |
run: exit 1 |