commit 52528aa297be6f1760af3e58a999f108faca64ae parent 066a85da166e44d13e4193bb5b2c9a72e2c1d80d Author: MTRNord <mtrnord1@gmail.com> Date: Tue, 16 Apr 2024 19:11:25 +0200 Fix ci Diffstat:
| D | .forgejo/workflows/update.yaml | | | 33 | --------------------------------- |
| A | .github/workflows/update.yaml | | | 39 | +++++++++++++++++++++++++++++++++++++++ |
| A | kubeaudit-config.yml | | | 0 |
3 files changed, 39 insertions(+), 33 deletions(-)
diff --git a/.forgejo/workflows/update.yaml b/.forgejo/workflows/update.yaml @@ -1,33 +0,0 @@ -name: update-flux - -on: - workflow_dispatch: - schedule: - - cron: "0 * * * *" - push: - branches: - - main - -permissions: - contents: write - pull-requests: write - -jobs: - components: - runs-on: docker - steps: - - name: Check out code - uses: https://github.com/actions/checkout@v4 - - name: Setup Flux CLI - uses: https://github.com/fluxcd/flux2/action@main - with: - token: ${{ secrets.HELPER_TOKEN_GITHUB }} - - - name: Check for updates - id: update - run: | - flux install \ - --export > ./clusters/production/flux-system/gotk-components.yaml - - VERSION="$(flux -v)" - echo "flux_version=$VERSION" >> $GITHUB_OUTPUT diff --git a/.github/workflows/update.yaml b/.github/workflows/update.yaml @@ -0,0 +1,39 @@ +name: update-flux + +on: + workflow_dispatch: + schedule: + - cron: "0 * * * *" + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +jobs: + components: + 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 \ + --export > ./clusters/production/flux-system/gotk-components.yaml + + VERSION="$(flux -v)" + echo "flux_version=$VERSION" >> $GITHUB_OUTPUT + - name: Create Pull Request + uses: peter-evans/create-pull-request@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + branch: update-flux + commit-message: Update to ${{ steps.update.outputs.flux_version }} + title: Update to ${{ steps.update.outputs.flux_version }} + body: | + ${{ steps.update.outputs.flux_version }} diff --git a/kubeaudit-config.yml b/kubeaudit-config.yml