Skip to content

feat(container): update image registry.k8s.io/sig-storage/csi-provisioner ( v6.1.0 ➔ v6.2.0 ) #1594

feat(container): update image registry.k8s.io/sig-storage/csi-provisioner ( v6.1.0 ➔ v6.2.0 )

feat(container): update image registry.k8s.io/sig-storage/csi-provisioner ( v6.1.0 ➔ v6.2.0 ) #1594

Workflow file for this run

---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Image Pull
on:
pull_request:
branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
jobs:
pre-job:
name: Image Pull - Pre-Job
runs-on: ubuntu-latest
outputs:
any_changed: ${{ steps.changed-files.outputs.any_changed }}
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
# - name: Get Changed Files
# id: changed-files
# uses: JJGadgets/tj-actions-changed-files@9200e69727eb73eb060652b19946b8a2fdfb654b
# with:
# files: kubernetes/**
extract:
if: ${{ needs.pre-job.outputs.any_changed == 'true' }}
name: Image Pull - Extract Images
needs: pre-job
runs-on: ubuntu-latest
strategy:
matrix:
branches: ["default", "pull"]
fail-fast: false
outputs:
default: ${{ steps.images.outputs.default }}
pull: ${{ steps.images.outputs.pull }}
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
ref: "${{ matrix.branches == 'default' && github.event.repository.default_branch || '' }}"
- name: Gather Images
uses: docker://ghcr.io/allenporter/flux-local:v8.0.1
with:
args: >-
get cluster
--all-namespaces
--path /github/workspace/kubernetes/flux/cluster
--enable-images
--only-images
--output json
--output-file images.json
- name: Output Images
id: images
run: |
echo "${{ matrix.branches }}=$(jq --compact-output '.' images.json)" >> $GITHUB_OUTPUT
echo '## Branch ${{ matrix.branches }} images' >> $GITHUB_STEP_SUMMARY
echo '```json' >> $GITHUB_STEP_SUMMARY
jq '.' images.json >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
compare:
if: ${{ needs.pre-job.outputs.any_changed == 'true' && needs.extract.outputs.default != needs.extract.outputs.pull }}
name: Image Pull - Compare Images
runs-on: ubuntu-latest
needs: ["pre-job", "extract"]
outputs:
images: ${{ steps.compare.outputs.images }}
steps:
- name: Compare Images
id: compare
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
echo '## New images to Pull' >> $GITHUB_STEP_SUMMARY
echo '```json' >> $GITHUB_STEP_SUMMARY
echo $images | jq >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
pull:
if: ${{ needs.pre-job.outputs.any_changed == 'true' && needs.compare.outputs.images != '[]' }}
name: Image Pull - Pull Images
runs-on: home-ops-runner
needs: ["pre-job", "compare"]
strategy:
matrix:
images: ${{ fromJSON(needs.compare.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 }}
status:
if: ${{ always() }}
name: Image Pull - Success
needs: pull
runs-on: ubuntu-latest
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) }}"