drone-abra/plugin.sh
3wc 0b121ce04d
All checks were successful
continuous-integration/drone/push Build is passing
Fix binary paths, simplify plugin
2023-01-15 19:54:50 -08:00

33 lines
481 B
Bash
Executable File

#!/bin/bash
set -e
ABRA=/root/.local/bin/abra
PLUGIN_HOST=${PLUGIN_HOST:-git.coopcloud.tech}
PLUGIN_PORT=${PLUGIN_PORT:-2222}
output_versions(){
echo "--- start versions"
$ABRA -v
echo "--- end versions"
}
run_abra_cmd() {
echo "--- start command ---"
# shellcheck disable=SC2086
$ABRA $PLUGIN_COMMAND
echo "--- end command ---"
}
run_plugin() {
echo "--- start drone-abra ---"
output_versions
run_abra_cmd
echo "--- end drone-abra ---"
}
run_plugin