onedr0p / home-ops

Wife approved HomeOps driven by Kubernetes and GitOps using Flux

Home Page:https://onedr0p.github.io/home-ops/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consolidate method of pulling CLI tools in Github workflows

onedr0p opened this issue · comments

It would be nice to consolidate on a single package manager for my GH workflows, here's what I've tried and the nuances between them:

  • brew: Does not work on the self-hosted runners using upstream GH container image since brew is not installed
  • aqua: Does not allow you to specify latest packages, also subshell scripts do not have access to the CLI tool
  • asdf: Does not have all the packages I need
  • nixpkgs: Cumbersome to manage flake file, lags in CLI versions of the tools I need, and takes too long to run the steps

Currently I am using a mix of brew (brew install lychee) and specific actions (fluxcd/flux2/action@main, frenck/action-setup-yq@v1).

The answer as it appears is to build a runner image and install brew on it. Brew is life.