Incompatibility between rules and only in gitlab ci maybe? The job is never run on master...
rules
only