add drone-ssh-1.8.1-linux-amd64 to void download binary from github
Some checks failed
testing main branch / default-user-name-password (push) Waiting to run
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 / 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 stable version / check-ssh-key (push) Has been cancelled
Some checks failed
testing main branch / default-user-name-password (push) Waiting to run
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 / 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 stable version / check-ssh-key (push) Has been cancelled
This commit is contained in:
parent
1423f391fb
commit
9e937cdcef
@ -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,18 +29,19 @@ 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}"
|
||||||
TARGET="drone-ssh-1.8.1-linux-amd64"
|
|
||||||
# echo "Downloading ${CLIENT_BINARY} from ${DOWNLOAD_URL_PREFIX}"
|
# echo "Downloading ${CLIENT_BINARY} from ${DOWNLOAD_URL_PREFIX}"
|
||||||
# INSECURE_OPTION=""
|
INSECURE_OPTION=""
|
||||||
# if [[ "${INPUT_CURL_INSECURE}" == 'true' ]]; then
|
if [[ "${INPUT_CURL_INSECURE}" == 'true' ]]; then
|
||||||
# INSECURE_OPTION="--insecure"
|
INSECURE_OPTION="--insecure"
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
# curl -fsSL --retry 5 --keepalive-time 2 ${INSECURE_OPTION} "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o "${TARGET}"
|
DOWNLOAD_URL="https://code.cemeta.cn/mirroractions/ssh-action/raw/branch/main/drone-ssh-1.8.1-linux-amd64"
|
||||||
|
|
||||||
|
curl -fsSL --retry 5 --keepalive-time 2 ${INSECURE_OPTION} "${DOWNLOAD_URL}" -o "${TARGET}"
|
||||||
chmod +x "${TARGET}"
|
chmod +x "${TARGET}"
|
||||||
|
|
||||||
echo "======= CLI Version Information ======="
|
echo "======= CLI Version Information ======="
|
||||||
|
|||||||
Reference in New Issue
Block a user