mirror of
https://github.com/bartvdbraak/homebrew-keyweave.git
synced 2025-04-26 17:11:21 +00:00
fix: add brew to path
This commit is contained in:
parent
72434f9b71
commit
2bfc51ccab
2 changed files with 24 additions and 6 deletions
28
.github/workflows/tests.yml
vendored
28
.github/workflows/tests.yml
vendored
|
@ -9,7 +9,7 @@ on:
|
||||||
- "Formula/keyweave.rb"
|
- "Formula/keyweave.rb"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
hosted:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
os:
|
||||||
|
@ -21,21 +21,37 @@ jobs:
|
||||||
|
|
||||||
name: Test on ${{ matrix.os }}
|
name: Test on ${{ matrix.os }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
continue-on-error: true
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check if Homebrew is installed
|
- name: Check installation using Homebrew
|
||||||
run: |
|
run: |
|
||||||
if ! command -v brew &> /dev/null
|
if ! command -v brew &> /dev/null
|
||||||
then
|
then
|
||||||
echo "Homebrew not found, installing..."
|
echo "Homebrew not found, installing..."
|
||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
|
(echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/runner/.bashrc
|
||||||
|
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
else
|
else
|
||||||
echo "Homebrew is already installed."
|
echo "Homebrew is already installed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Verify Homebrew installation
|
|
||||||
run: |
|
|
||||||
brew tap bartvdbraak/keyweave
|
brew tap bartvdbraak/keyweave
|
||||||
brew install keyweave
|
brew install keyweave
|
||||||
keyweave --version
|
keyweave --version
|
||||||
|
emulated:
|
||||||
|
name: Test on raspios-lite
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: pguyot/arm-runner-action@v2.5.2
|
||||||
|
with:
|
||||||
|
commands: |
|
||||||
|
if ! command -v brew &> /dev/null
|
||||||
|
then
|
||||||
|
echo "Homebrew not found, installing..."
|
||||||
|
su pi -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
|
else
|
||||||
|
echo "Homebrew is already installed."
|
||||||
|
fi
|
||||||
|
su pi -c /usr/local/bin/brew tap bartvdbraak/keyweave
|
||||||
|
su pi -c /usr/local/bin/brew install keyweave
|
||||||
|
su pi -c keyweave --version
|
|
@ -1,5 +1,7 @@
|
||||||
# Homebrew Keyweave Formula
|
# Homebrew Keyweave Formula
|
||||||
|
|
||||||
|
[](https://github.com/bartvdbraak/homebrew-keyweave/actions/workflows/tests.yml)
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
This Homebrew formula provides a convenient way to install [Keyweave](https://github.com/bartvdbraak/keyweave) on macOS and Linux systems. Keyweave is a tool that fetches secrets from Azure Key Vault and weaves them into a convenient .env file. This formula supports multiple architectures and libc variations, making it versatile for various system configurations.
|
This Homebrew formula provides a convenient way to install [Keyweave](https://github.com/bartvdbraak/keyweave) on macOS and Linux systems. Keyweave is a tool that fetches secrets from Azure Key Vault and weaves them into a convenient .env file. This formula supports multiple architectures and libc variations, making it versatile for various system configurations.
|
||||||
|
|
Loading…
Reference in a new issue