fix: Extract Valkey binaries directly to cache/ directory
Some checks failed
BotServer CI / build (push) Has been cancelled

- Use --strip-components=2 to flatten tarball structure
- Binaries go to cache/valkey-server (not cache/bin/valkey-server)
- Matches production path: /opt/gbo/bin/botserver-stack/bin/cache/

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

View file

@ -313,11 +313,13 @@ impl PackageManager {
binary_name: Some("valkey-server".to_string()),
pre_install_cmds_linux: vec![],
post_install_cmds_linux: vec![
"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(),
"ln -sf {{BIN_PATH}}/bin/valkey-server {{BIN_PATH}}/valkey-server 2>/dev/null || true".to_string(),
"ln -sf {{BIN_PATH}}/bin/valkey-cli {{BIN_PATH}}/valkey-cli 2>/dev/null || true".to_string(),
"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(),
],
pre_install_cmds_macos: vec![],
post_install_cmds_macos: vec![],
@ -325,8 +327,8 @@ impl PackageManager {
post_install_cmds_windows: vec![],
env_vars: HashMap::new(),
data_download_list: Vec::new(),
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(),
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(),
},
);
}