Cache not working

hello,

i tried to set up a docker buildx workflow with caching, but the caching doesnt work. Could anyone look over my code and tell me, if i missed something?

oh i found a solution. i missed the mode=max option.