Skip to content

Commit

Permalink
Switch to flux install to avoid _write_ token
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaykul committed Oct 9, 2023
1 parent 85ae6d6 commit 923bd29
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ jobs:
#! Update the client ID from the deployment output
$kustomize = Get-Content "./clusters/poshcode/flux-system/kustomization.yaml"
$kustomize = $kustomize -replace "azure.workload.identity/client-id: .*$", "azure.workload.identity/client-id: $($Results.Outputs.fluxIdClientId)"
# TODO: commit this file to the repo _before_ running flux
$kustomize | Set-Content "./clusters/poshcode/flux-system/kustomization.yaml"
git config --global user.name 'Workflow'
git config --global user.email 'jaykul@users.noreply.github.com'
git commit -am "Update Flux Client ID"
git push
#! Bootstrap Flux
./Initialize-Flux.ps1
# ./Initialize-Flux.ps1

0 comments on commit 923bd29

Please sign in to comment.