Add script for installing woodpecker-cli

This commit is contained in:
Manuel Thalmann 2022-12-07 09:19:24 +01:00
parent 5a6320cc78
commit c8507ba63e
2 changed files with 25 additions and 0 deletions

View file

@ -47,6 +47,7 @@ source "$softwareRoot/java.sh"
source "$softwareRoot/tea.sh" source "$softwareRoot/tea.sh"
source "$softwareRoot/godot.sh" source "$softwareRoot/godot.sh"
source "$softwareRoot/virt-manager.sh" source "$softwareRoot/virt-manager.sh"
source "$softwareRoot/woodpecker-cli.sh"
# Install other flatpaks # Install other flatpaks
flatpak install -y flathub com.bitwarden.desktop flatpak install -y flathub com.bitwarden.desktop

View file

@ -0,0 +1,24 @@
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE"
else
workingDirectory=$(pwd)
contextRoot=$(mktemp -d)
cd $contextRoot
# Preview from docker container
# container_id="$(docker create woodpeckerci/woodpecker-cli:next)"
# docker cp $container_id:/bin/woodpecker-cli /usr/local/bin/woodpecker-cli
# Latest from GitHub
wget https://github.com/woodpecker-ci/woodpecker/releases/download/v0.15.5/woodpecker-cli_linux_amd64.tar.gz \
-O woodpecker-cli.tar.gz
tar -xvzf woodpecker-cli.tar.gz
install woodpecker-cli /usr/local/bin
cd $workingDirectory
rm -rf $contextRoot
fi