Production CI/CD for Redis Functions

Does anyone have experience pushing redis functions into production redis clusters via CI/CD? Also on making sure the redis functions get reinstalled in the event of server restarts?

In particular we are using Gitlab and managed redis on AWS.


Also, are there any thoughts on best practices for versioning the Redis Function .lua files? I’ve added a

-- Returns a semver version string for the library. 
local function version(keys, args) return TASKS_PROTOCOL_VERSION end

redis.register_function('hg_tasks_version', version)

function so that CI/CD and users can make sure that server-side has a compatible protocol.

Again, thoughts and best practices are greatly appreciated!