fix: Extract Valkey to cache/bin/ directory
All checks were successful
BotServer CI / build (push) Successful in 8m1s

- Binaries at cache/bin/valkey-server (correct production path)
- Use --strip-components=1 for extraction
- Matches /opt/gbo/bin/botserver-stack/bin/cache/bin/

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Rodrigo Rodriguez 2026-02-15 01:22:14 +00:00
parent bfbdf8396f
commit dec3a086ab

View file

@ -313,13 +313,13 @@ impl PackageManager {
binary_name: Some("valkey-server".to_string()),
pre_install_cmds_linux: vec![],
post_install_cmds_linux: vec![
"mkdir -p {{BIN_PATH}} && cd {{BIN_PATH}} && tar -xzf {{CACHE_FILE}} --strip-components=2 -C {{BIN_PATH}} 2>/dev/null || true".to_string(),
"chmod +x {{BIN_PATH}}/valkey-server 2>/dev/null || true".to_string(),
"chmod +x {{BIN_PATH}}/valkey-cli 2>/dev/null || true".to_string(),
"chmod +x {{BIN_PATH}}/valkey-benchmark 2>/dev/null || true".to_string(),
"chmod +x {{BIN_PATH}}/valkey-check-aof 2>/dev/null || true".to_string(),
"chmod +x {{BIN_PATH}}/valkey-check-rdb 2>/dev/null || true".to_string(),
"chmod +x {{BIN_PATH}}/valkey-sentinel 2>/dev/null || true".to_string(),
"mkdir -p {{BIN_PATH}}/bin && cd {{BIN_PATH}}/bin && tar -xzf {{CACHE_FILE}} --strip-components=1 -C {{BIN_PATH}}/bin 2>/dev/null || true".to_string(),
"chmod +x {{BIN_PATH}}/bin/valkey-server 2>/dev/null || true".to_string(),
"chmod +x {{BIN_PATH}}/bin/valkey-cli 2>/dev/null || true".to_string(),
"chmod +x {{BIN_PATH}}/bin/valkey-benchmark 2>/dev/null || true".to_string(),
"chmod +x {{BIN_PATH}}/bin/valkey-check-aof 2>/dev/null || true".to_string(),
"chmod +x {{BIN_PATH}}/bin/valkey-check-rdb 2>/dev/null || true".to_string(),
"chmod +x {{BIN_PATH}}/bin/valkey-sentinel 2>/dev/null || true".to_string(),
],
pre_install_cmds_macos: vec![],
post_install_cmds_macos: vec![],
@ -327,8 +327,8 @@ impl PackageManager {
post_install_cmds_windows: vec![],
env_vars: HashMap::new(),
data_download_list: Vec::new(),
exec_cmd: "nohup {{BIN_PATH}}/valkey-server --port 6379 --dir {{DATA_PATH}} --logfile {{LOGS_PATH}}/valkey.log --daemonize yes > {{LOGS_PATH}}/valkey-startup.log 2>&1".to_string(),
check_cmd: "{{BIN_PATH}}/valkey-cli ping 2>/dev/null | grep -q PONG".to_string(),
exec_cmd: "nohup {{BIN_PATH}}/bin/valkey-server --port 6379 --dir {{DATA_PATH}} --logfile {{LOGS_PATH}}/valkey.log --daemonize yes > {{LOGS_PATH}}/valkey-startup.log 2>&1".to_string(),
check_cmd: "{{BIN_PATH}}/bin/valkey-cli ping 2>/dev/null | grep -q PONG".to_string(),
},
);
}