feat: add param
This commit is contained in:
@@ -154,7 +154,7 @@ test_ssh_connection() {
|
||||
local droplet_ip="$1"
|
||||
local max_attempts=10
|
||||
local attempt=1
|
||||
local wait_time=30
|
||||
local wait_time=10
|
||||
|
||||
echo "Testing SSH connection to $droplet_ip..."
|
||||
|
||||
@@ -250,7 +250,7 @@ setup_vm() {
|
||||
}
|
||||
|
||||
# Check required environment variables
|
||||
check_env_vars "SPEC" "RUNNER_ID" "DO_TOKEN" "SSH_PRIVATE_KEY_DECODED"
|
||||
check_env_vars "SPEC" "RUNNER_ID" "DO_TOKEN" "SSH_PRIVATE_KEY_DECODED" "DROPLET_NAME" "DROPLET_SIZE" "DROPLET_IMAGE" "DROPLET_REGION"
|
||||
|
||||
# Check if doctl is available
|
||||
check_doctl
|
||||
@@ -258,7 +258,7 @@ check_doctl
|
||||
# Setup SSH private key
|
||||
setup_ssh_key
|
||||
|
||||
create_droplet
|
||||
create_droplet "$DROPLET_NAME" "$DROPLET_SIZE" "$DROPLET_IMAGE" "$DROPLET_REGION"
|
||||
|
||||
# Calculate and display execution time
|
||||
END_TIME=$(date +%s)
|
||||
|
||||
Reference in New Issue
Block a user