Hello guys am new with Gitlab and Azure , currently am having a repo on Gitlba and am trying to deploy it to Azure, but I can't manage to achieve this, tried to follow this link , but the information is old, Is there anyone with a latest link or resource to achieve this?
Thanks
Joy's answer above is helpful. I've rewritten it to clarify the steps on obtaining a SSH 'deploy key'.
Head over to your Gitlab repository and click the Clone button. Copy the Clone with SSH address.

Also, have your Gitlab account username and password available.
In the Azure portal go to your web app resource and go to the Deployment Center. Choose the External option. We're going to use the 'App Service build service'. Next enter in the data from step 1. Click Continue to finish.

Next we're going to get the SSH 'deploy key'.
https://$mysite:[email protected]/deploy/deploy with /api/sshkey?ensurePublicKey=1. So it'll look like:
https://$mysite:[email protected]/api/sshkey?ensurePublicKey=1ssh-rsa AAAAB3NzaC1etc...(These steps are from the Kudu docs)
In GitLab go to Settings -> Repository -> Deploy Keys and click Expand. Add a title and the SSH 'deploy key' here. Then save. Test it by going back to the Deployment Center in the Azure portal and clicking the Sync button. It should work.

Then we'll configure the continuous deployment. In your GitLab go to Settings -> Integrations -> write the URL (This is the same Deployment Trigger URL in Properties we used earlier) To save click the Add webhook button.

Create a new file (or commit a change) in the GitLab project and it deploys to the web app automatically.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With