Major refactor to blue-build to allow more complex builds
This commit is contained in:
parent
01259cef7b
commit
fb2297478c
15 changed files with 215 additions and 500 deletions
25
files/scripts/download_install_rpms.sh
Normal file
25
files/scripts/download_install_rpms.sh
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -oex pipefail
|
||||
set +u
|
||||
|
||||
# from RPMs on Github
|
||||
# Space-separated list of repo/package strings
|
||||
repos="quexten/goldwarden"
|
||||
|
||||
# Loop through each repo/package
|
||||
for repo_package in $repos; do
|
||||
# Split the string into repo and package using parameter expansion
|
||||
repo=${repo_package%/*}
|
||||
package=${repo_package#*/}
|
||||
|
||||
# Fetch the latest release download URL for .rpm assets
|
||||
download_url=$(wget -qO- "https://api.github.com/repos/$repo/$package/releases/latest" \
|
||||
| jq -r '.assets[] | select(.name | match(".rpm")) | .browser_download_url')
|
||||
|
||||
# Download the asset as <PACKAGE>.rpm
|
||||
wget -qO "$package.rpm" "$download_url"
|
||||
|
||||
# Install the package
|
||||
rpm-ostree install "$package.rpm"
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue