Skip to content

Commit

Permalink
fix(actions/flux-localhost-build): force push
Browse files Browse the repository at this point in the history
  • Loading branch information
JJGadgets committed May 19, 2024
1 parent 3910c7c commit 59294bc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/flux-localhost-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,15 @@ jobs:
git config user.name "${{ secrets.BOT_USERNAME }}[bot]"
git config user.email "${{ secrets.BOT_USERNAME }} <${{ secrets.BOT_API_ID }}+${{ secrets.BOT_USERNAME }}[bot]@users.noreply.github.com>" # get $BOT_API_ID from `curl -s 'https://api.github.com/users/$(BOT_USERNAME)%5Bbot%5D' | yq .id`
git checkout ${{ env.BRANCH }} || git checkout -b ${{ env.BRANCH }} main
git pull --rebase --autostash origin ${{ env.BRANCH }} || true
git checkout -b ${{ env.BRANCH }} main
#git checkout ${{ env.BRANCH }} || git checkout -b ${{ env.BRANCH }} main
#git pull --rebase --autostash origin ${{ env.BRANCH }} || true
mkdir -p /tmp/flux
flux pull artifact oci://ghcr.io/fluxcd/flux-manifests:v${{ env.FLUX_VERSION }} --output /tmp/flux/
flux build kustomization zzz-flux --path /tmp/flux --kustomization-file ./kube/clusters/biohazard/flux/flux-install-localhost.yaml --dry-run | tee ./kube/bootstrap/flux/flux-install-localhost-manifests.yaml
git add ./kube/bootstrap/flux/flux-install-localhost-manifests.yaml
git commit --message "${{ env.MESSAGE }}"
git push origin ${{ env.BRANCH }}
git push origin ${{ env.BRANCH }} --force
gh pr create --title "${{ env.MESSAGE }}" --body "Updates Flux install manifests, patched for use with localhost hostNetwork, to the ${{ env.FLUX_VERSION }} version." --reviewer ${{ github.repository_owner }}

0 comments on commit 59294bc

Please sign in to comment.