mirror of
https://github.com/vhaudiquet/mymachine.git
synced 2025-12-18 12:06:06 +00:00
Added sops
This commit is contained in:
@@ -183,6 +183,7 @@ PACKAGES=(
|
||||
docker-compose
|
||||
# Others
|
||||
pre-commit
|
||||
sops
|
||||
)
|
||||
|
||||
EXTRA_PACKAGES=(
|
||||
|
||||
@@ -115,6 +115,11 @@ install_ligconsolata() {
|
||||
&& cp Inconsolata-3.000/fonts/otf/*.otf "/usr/local/share/fonts/" && rm -rf Inconsolata-3.000 v3.000.zip
|
||||
}
|
||||
|
||||
install_sops() {
|
||||
curl -LO https://github.com/getsops/sops/releases/download/v3.10.2/sops-v3.10.2.linux.amd64 && \
|
||||
mv sops-v3.10.2.linux.amd64 /usr/local/bin/sops && chmod +x /usr/local/bin/sops
|
||||
}
|
||||
|
||||
export EXTRA_INSTALL_MESSAGE="Installing snap packages"
|
||||
extra_init() {
|
||||
# Install ghostty
|
||||
@@ -189,6 +194,16 @@ extra_init() {
|
||||
else
|
||||
erase_text "kubectl"
|
||||
fi
|
||||
|
||||
# SOPS
|
||||
echo -ne "sops"
|
||||
install_sops >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
echo ""
|
||||
echo -e "${BRed}Could not install sops. Skipping.${NC}"
|
||||
else
|
||||
erase_text "sops"
|
||||
fi
|
||||
}
|
||||
|
||||
extra_finish() {
|
||||
|
||||
Reference in New Issue
Block a user