Skip to content

update-flux

update-flux #706

Workflow file for this run

name: update-flux
on:
workflow_dispatch:
schedule:
- cron: "0 1 * * *"
jobs:
components:
strategy:
matrix:
cluster:
- vagrant
- contabo1
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Setup Flux CLI
uses: fluxcd/flux2/action@main
- name: Check for updates
id: update
run: |
flux install --components-extra=image-reflector-controller,image-automation-controller\
--export > ./clusters/${{ matrix.cluster }}/flux-system/gotk-components.yaml
VERSION="$(flux -v)"
echo "::set-output name=flux_version::$VERSION"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-flux-${{ matrix.cluster }}
commit-message: Update Flux at ${{ matrix.cluster }} to ${{ steps.update.outputs.flux_version }}
title: Update Flux at ${{ matrix.cluster }} to ${{ steps.update.outputs.flux_version }}
body: |
${{ steps.update.outputs.flux_version }}
assignees: fischerscode
reviewers: fischerscode
delete-branch: true