add drone-ssh-1.8.1-linux-amd64 to void download binary from github
Some checks failed
testing main branch / check-ssh-key (push) Waiting to run
testing main branch / support-key-passphrase (push) Waiting to run
testing main branch / multiple-server (push) Waiting to run
testing main branch / support-ed25519-key (push) Waiting to run
testing main branch / testing-with-env (push) Waiting to run
testing main branch / testing ipv6 (push) Waiting to run
testing main branch / some special character (push) Waiting to run
testing main branch / testing-capturing-output (push) Waiting to run
testing main branch / testing-script-stop (push) Waiting to run
testing main branch / testing-script-error (push) Waiting to run
testing stable version / check-ssh-key (push) Waiting to run
testing stable version / support-key-passphrase (push) Waiting to run
testing stable version / multiple-server (push) Waiting to run
testing stable version / support-ed25519-key (push) Waiting to run
testing stable version / testing-with-env (push) Waiting to run
testing stable version / default-user-name-password (push) Has been cancelled
testing main branch / default-user-name-password (push) Has been cancelled
Some checks failed
testing main branch / check-ssh-key (push) Waiting to run
testing main branch / support-key-passphrase (push) Waiting to run
testing main branch / multiple-server (push) Waiting to run
testing main branch / support-ed25519-key (push) Waiting to run
testing main branch / testing-with-env (push) Waiting to run
testing main branch / testing ipv6 (push) Waiting to run
testing main branch / some special character (push) Waiting to run
testing main branch / testing-capturing-output (push) Waiting to run
testing main branch / testing-script-stop (push) Waiting to run
testing main branch / testing-script-error (push) Waiting to run
testing stable version / check-ssh-key (push) Waiting to run
testing stable version / support-key-passphrase (push) Waiting to run
testing stable version / multiple-server (push) Waiting to run
testing stable version / support-ed25519-key (push) Waiting to run
testing stable version / testing-with-env (push) Waiting to run
testing stable version / default-user-name-password (push) Has been cancelled
testing main branch / default-user-name-password (push) Has been cancelled
This commit is contained in:
parent
bd66a423ea
commit
1423f391fb
BIN
drone-ssh-1.8.1-linux-amd64
Normal file
BIN
drone-ssh-1.8.1-linux-amd64
Normal file
Binary file not shown.
@ -4,9 +4,9 @@ set -euo pipefail
|
|||||||
|
|
||||||
export GITHUB="true"
|
export GITHUB="true"
|
||||||
|
|
||||||
GITHUB_ACTION_PATH="${GITHUB_ACTION_PATH%/}"
|
# GITHUB_ACTION_PATH="${GITHUB_ACTION_PATH%/}"
|
||||||
DRONE_SSH_RELEASE_URL="${DRONE_SSH_RELEASE_URL:-https://github.com/appleboy/drone-ssh/releases/download}"
|
# DRONE_SSH_RELEASE_URL="${DRONE_SSH_RELEASE_URL:-https://github.com/appleboy/drone-ssh/releases/download}"
|
||||||
DRONE_SSH_VERSION="${DRONE_SSH_VERSION:-1.8.1}"
|
# DRONE_SSH_VERSION="${DRONE_SSH_VERSION:-1.8.1}"
|
||||||
|
|
||||||
function log_error() {
|
function log_error() {
|
||||||
echo "$1" >&2
|
echo "$1" >&2
|
||||||
@ -29,17 +29,18 @@ function detect_client_info() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
detect_client_info
|
# detect_client_info
|
||||||
DOWNLOAD_URL_PREFIX="${DRONE_SSH_RELEASE_URL}/v${DRONE_SSH_VERSION}"
|
# DOWNLOAD_URL_PREFIX="${DRONE_SSH_RELEASE_URL}/v${DRONE_SSH_VERSION}"
|
||||||
CLIENT_BINARY="drone-ssh-${DRONE_SSH_VERSION}-${CLIENT_PLATFORM}-${CLIENT_ARCH}"
|
# CLIENT_BINARY="drone-ssh-${DRONE_SSH_VERSION}-${CLIENT_PLATFORM}-${CLIENT_ARCH}"
|
||||||
TARGET="${GITHUB_ACTION_PATH}/${CLIENT_BINARY}"
|
# TARGET="${GITHUB_ACTION_PATH}/${CLIENT_BINARY}"
|
||||||
echo "Downloading ${CLIENT_BINARY} from ${DOWNLOAD_URL_PREFIX}"
|
TARGET="drone-ssh-1.8.1-linux-amd64"
|
||||||
INSECURE_OPTION=""
|
# echo "Downloading ${CLIENT_BINARY} from ${DOWNLOAD_URL_PREFIX}"
|
||||||
if [[ "${INPUT_CURL_INSECURE}" == 'true' ]]; then
|
# INSECURE_OPTION=""
|
||||||
INSECURE_OPTION="--insecure"
|
# if [[ "${INPUT_CURL_INSECURE}" == 'true' ]]; then
|
||||||
fi
|
# INSECURE_OPTION="--insecure"
|
||||||
|
# fi
|
||||||
|
|
||||||
curl -fsSL --retry 5 --keepalive-time 2 ${INSECURE_OPTION} "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o "${TARGET}"
|
# curl -fsSL --retry 5 --keepalive-time 2 ${INSECURE_OPTION} "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o "${TARGET}"
|
||||||
chmod +x "${TARGET}"
|
chmod +x "${TARGET}"
|
||||||
|
|
||||||
echo "======= CLI Version Information ======="
|
echo "======= CLI Version Information ======="
|
||||||
|
|||||||
Reference in New Issue
Block a user