Webhook for SonarQube quality gate analysis

I have sonarqube integrated to analyze in my projects. However, since SonarQube scanner no longer fails builds based on quality gates, I read an article on how webhooks can be used to wait for a post from sonar when the analysis is done. The one example they give is for Jenkins (https://blog.sonarsource.com/breaking-the-sonarqube-analysis-with-jenkins-pipelines/). My question is can this be done in GitLab. If so, has anyone done it before? Thanks!

was there any solution found for gitlab ci. If yes, could you please share any example there is no much help on this topic