Skip to content

chore(kubernetes): house keeping #93

chore(kubernetes): house keeping

chore(kubernetes): house keeping #93

Workflow file for this run

---
name: Flux Kustomization Sync
on:
workflow_dispatch:
push:
branches: ["master"]
paths: ["kubernetes/**"]
env:
DEBCONF_NONINTERACTIVE_SEEN: "true"
DEBIAN_FRONTEND: noninteractive
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE: DontWarn
jobs:
sync:
name: Flux Kustomization Sync
runs-on: ["arc-runner-set-k8s-gitops"]
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Setup Tools
shell: bash
run: brew install fluxcd/tap/flux
- name: Write kubeconfig
id: kubeconfig
uses: timheuer/base64-to-file@784a1a4a994315802b7d8e2084e116e783d157be # v1.2.4
with:
encodedString: "${{ secrets.KUBECONFIG }}"
fileName: kubeconfig
- name: Sync Kustomization
env:
KUBECONFIG: "${{ steps.kubeconfig.outputs.filePath }}"
shell: bash
run: |
flux \
--namespace flux-system \
reconcile ks cluster \
--with-source