Fix: Force pull images in deploy workflow
All checks were successful
Build and Push / build-all (push) Successful in 8m52s
All checks were successful
Build and Push / build-all (push) Successful in 8m52s
This commit is contained in:
parent
5430e434c3
commit
7f56f19e94
10 changed files with 164 additions and 30 deletions
|
|
@ -18,6 +18,14 @@ local function get_redis_connection()
|
|||
return nil
|
||||
end
|
||||
|
||||
-- Select the correct Redis database (db 1, matching backend config)
|
||||
local db = tonumber(os.getenv("REDIS_DB")) or 1
|
||||
local res, err = red:select(db)
|
||||
if not res then
|
||||
ngx.log(ngx.ERR, "Failed to select Redis database: ", err)
|
||||
return nil
|
||||
end
|
||||
|
||||
-- Authenticate if password is set
|
||||
if REDIS_PASSWORD and REDIS_PASSWORD ~= "" then
|
||||
local res, err = red:auth(REDIS_PASSWORD)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue