Skip to content

feat(helm): update chart loki (6.27.0 β†’ 6.28.0) #35

feat(helm): update chart loki (6.27.0 β†’ 6.28.0)

feat(helm): update chart loki (6.27.0 β†’ 6.28.0) #35

Workflow file for this run

---
name: Image Pull
on:
pull_request:
branches: ["master"]
paths: ["kubernetes/**"]
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
jobs:
extract:
name: Extract Images
runs-on: ubuntu-latest
strategy:
matrix:
branches: ["default", "pull"]
fail-fast: false
outputs:
default: ${{ steps.extract.outputs.default }}
pull: ${{ steps.extract.outputs.pull }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: "${{ matrix.branches == 'default' && github.event.repository.default_branch || '' }}"
- name: Gather Images
uses: docker://ghcr.io/allenporter/flux-local:v7.2.1
with:
args: >-
get cluster
--all-namespaces
--path /github/workspace/kubernetes/flux/cluster
--enable-images
--only-images
--output json
--output-file images.json
- name: Extract Images
id: extract
run: echo "${{ matrix.branches }}=$(jq --compact-output '.' images.json)" >> $GITHUB_OUTPUT
diff:
needs: extract
name: Diff Images
runs-on: ubuntu-latest
if: ${{ needs.extract.outputs.default != needs.extract.outputs.pull }}
outputs:
images: ${{ steps.diff.outputs.images }}
steps:
- name: Diff Images
id: diff
run: |
images=$(jq --compact-output --null-input \
--argjson f1 '${{ needs.extract.outputs.default }}' \
--argjson f2 '${{ needs.extract.outputs.pull }}' \
'$f2 - $f1' \
)
echo "images=${images}" >> $GITHUB_OUTPUT
pull:
needs: diff
name: Pull Images
runs-on: k8s-gitops-runner
if: ${{ needs.diff.outputs.images != '[]' }}
strategy:
matrix:
images: ${{ fromJSON(needs.diff.outputs.images) }}
max-parallel: 4
fail-fast: false
steps:
- name: Install talosctl
run: curl -fsSL https://talos.dev/install | sh
- name: Pull Image
run: talosctl --nodes $NODE image pull ${{ matrix.images }}