Update-Flux #2
This file contains 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
name: Update-Flux | |
on: | |
workflow_dispatch: | |
jobs: | |
update-flux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Flux CLI | |
uses: fluxcd/flux2/action@main | |
with: | |
version: "latest" | |
- name: Update flux | |
run: flux install --export > ./kubernetes/infra/flux/gotk-components.yaml | |
- name: Commit and push changes | |
run: | | |
git config --global user.email " | |
git config --global user.name "GitHub Actions" | |
git add . | |
git commit -m "Update flux" | |
git push |