Skip to content

Commit

Permalink
fix: updates
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed Dec 31, 2024
1 parent 2925ce7 commit faf8cb5
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 64 deletions.
46 changes: 30 additions & 16 deletions .github/workflows/flux-diff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

env:
HOMEBREW_NO_ANALYTICS: "1"
UV_SYSTEM_PYTHON: "1"
# env:
# HOMEBREW_NO_ANALYTICS: "1"
# UV_SYSTEM_PYTHON: "1"

jobs:
flux-diff:
Expand Down Expand Up @@ -50,23 +50,37 @@ jobs:
ref: "${{ github.event.repository.default_branch }}"
path: default

- name: Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Setup Workflow Tools
uses: jdx/mise-action@v2
env:
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}"
with:
stable: true
mise_toml: |
[tools]
python = "3.12"
"aqua:astral-sh/uv" = "latest"
"aqua:fluxcd/flux2" = "latest"
"aqua:helm/helm" = "latest"
"aqua:kubernetes-sigs/kustomize" = "latest"
"pipx:flux-local" = "latest"
- name: Setup Workflow Tools
shell: bash
run: brew install fluxcd/tap/flux helm kustomize uv
# - name: Setup Homebrew
# uses: Homebrew/actions/setup-homebrew@master
# with:
# stable: true

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.12.x
# - name: Setup Workflow Tools
# shell: bash
# run: brew install fluxcd/tap/flux helm kustomize uv

- name: Install Python Dependencies
shell: bash
run: uv pip install flux-local
# - name: Setup Python
# uses: actions/setup-python@v5
# with:
# python-version: 3.12.x

# - name: Install Python Dependencies
# shell: bash
# run: uv pip install flux-local

- name: Diff Resources
shell: bash
Expand Down
26 changes: 18 additions & 8 deletions .github/workflows/helm-repository-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
branches: ["main"]
paths: ["kubernetes/**/helmrelease.yaml"]

env:
HOMEBREW_NO_ANALYTICS: "1"
# env:
# HOMEBREW_NO_ANALYTICS: "1"

jobs:
sync:
Expand All @@ -37,14 +37,24 @@ jobs:
token: "${{ steps.app-token.outputs.token }}"
fetch-depth: 0

- name: Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Setup Workflow Tools
uses: jdx/mise-action@v2
env:
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}"
with:
stable: true
mise_toml: |
[tools]
"aqua:fluxcd/flux2" = "latest"
"aqua:mikefarah/yq" = "latest"
- name: Setup Workflow Tools
shell: bash
run: brew install fluxcd/tap/flux yq
# - name: Setup Homebrew
# uses: Homebrew/actions/setup-homebrew@master
# with:
# stable: true

# - name: Setup Workflow Tools
# shell: bash
# run: brew install fluxcd/tap/flux yq

- if: ${{ github.event.inputs.helmRepoNamespace == '' && github.event.inputs.helmRepoName == '' }}
name: Get Changed Files
Expand Down
77 changes: 54 additions & 23 deletions .github/workflows/pre-pull-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

env:
HOMEBREW_NO_ANALYTICS: "1"
UV_SYSTEM_PYTHON: "1"
# env:
# HOMEBREW_NO_ANALYTICS: "1"
# UV_SYSTEM_PYTHON: "1"

jobs:
extract-images:
Expand Down Expand Up @@ -47,23 +47,38 @@ jobs:
token: "${{ steps.app-token.outputs.token }}"
path: pull

- name: Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master
with:
stable: true
# - name: Setup Homebrew
# uses: Homebrew/actions/setup-homebrew@master
# with:
# stable: true

- name: Setup Workflow Tools
shell: bash
run: brew install fluxcd/tap/flux helm jo kustomize uv yq
# - name: Setup Workflow Tools
# shell: bash
# run: brew install fluxcd/tap/flux helm jo kustomize uv yq

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.12.x
# - name: Setup Python
# uses: actions/setup-python@v5
# with:
# python-version: 3.12.x

- name: Install Python Dependencies
shell: bash
run: uv pip install flux-local
# - name: Install Python Dependencies
# shell: bash
# run: uv pip install flux-local

- name: Setup Workflow Tools
uses: jdx/mise-action@v2
env:
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}"
with:
mise_toml: |
[tools]
python = "3.12"
"aqua:astral-sh/uv" = "latest"
"aqua:fluxcd/flux2" = "latest"
"aqua:helm/helm" = "latest"
"aqua:kubernetes-sigs/kustomize" = "latest"
"aqua:mikefarah/yq" = "latest"
"pipx:flux-local" = "latest"
- name: Gather Images in Default Branch
shell: bash
Expand Down Expand Up @@ -99,7 +114,7 @@ jobs:
id: extract-images
shell: bash
run: |
images=$(jo -a $(grep -vf default.txt pull.txt))
images=$(jq --compact-output --raw-input --null-input '[inputs]' < <(grep -vf default.txt pull.txt))
echo "images=${images}" >> $GITHUB_OUTPUT
echo "${images}"
echo "### Images" >> $GITHUB_STEP_SUMMARY
Expand All @@ -116,14 +131,30 @@ jobs:
max-parallel: 4
fail-fast: false
steps:
- name: Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Generate Token
uses: actions/create-github-app-token@v1
id: app-token
with:
stable: true
app-id: "${{ secrets.BOT_APP_ID }}"
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"

- name: Setup Workflow Tools
shell: bash
run: brew install siderolabs/tap/talosctl
uses: jdx/mise-action@v2
env:
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}"
with:
mise_toml: |
[tools]
"aqua:siderolabs/talos" = "latest"
# - name: Setup Homebrew
# uses: Homebrew/actions/setup-homebrew@master
# with:
# stable: true

# - name: Setup Workflow Tools
# shell: bash
# run: brew install siderolabs/tap/talosctl

- name: Pre-pull Image
run: talosctl -n $NODE_IP image pull ${{ matrix.images }}
Expand Down
48 changes: 31 additions & 17 deletions .github/workflows/schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ on:
branches: ["main"]
paths: [".github/workflows/schemas.yaml"]

env:
HOMEBREW_NO_ANALYTICS: "1"
UV_SYSTEM_PYTHON: "1"
# env:
# HOMEBREW_NO_ANALYTICS: "1"
# UV_SYSTEM_PYTHON: "1"

jobs:
publish:
Expand All @@ -34,27 +34,41 @@ jobs:
with:
token: "${{ steps.app-token.outputs.token }}"

- name: Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master
with:
stable: true
# - name: Setup Homebrew
# uses: Homebrew/actions/setup-homebrew@master
# with:
# stable: true

- name: Setup Workflow Tools
shell: bash
run: brew install kubectl uv
# - name: Setup Workflow Tools
# shell: bash
# run: brew install kubectl uv

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.12.x
# - name: Setup Python
# uses: actions/setup-python@v5
# with:
# python-version: 3.12.x

# - name: Setup Node
# uses: actions/setup-node@v4
# with:
# node-version: 18.x

- name: Setup Node
uses: actions/setup-node@v4
- name: Setup Workflow Tools
uses: jdx/mise-action@v2
env:
GITHUB_TOKEN: "${{ steps.app-token.outputs.token }}"
with:
node-version: 18.x
mise_toml: |
[tools]
python = "3.12"
node = "20"
"aqua:astral-sh/uv" = "latest"
"aqua:kubernetes/kubectl" = "latest"
- name: Install Python Dependencies
run: uv pip install pyyaml
env:
UV_SYSTEM_PYTHON: "1"

- name: Download and run crd-extractor
shell: bash
Expand Down

0 comments on commit faf8cb5

Please sign in to comment.