Add script for installing woodpecker-cli
This commit is contained in:
parent
5a6320cc78
commit
c8507ba63e
2 changed files with 25 additions and 0 deletions
|
@ -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
|
||||||
|
|
24
scripts/PopOS/software/woodpecker-cli.sh
Executable file
24
scripts/PopOS/software/woodpecker-cli.sh
Executable 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
|
Loading…
Reference in a new issue