Forum Discussion
Dave Rendón
Aug 19, 2019MVP
Setup Gitlab Continuous (CI/CD) on Azure
- Deploy Ubuntu VM with Docker Engine
- Setup Gitlab on Ubuntu
- Deploy Webapp
- Setup Gitlab Continuous (CI/CD)
- Step-by-step video
Deploy Ubuntu VM with Docker Engine
- Go to https://gitlab.com/daveRendon/ubuntu-vm-with-docker-engine/blob/master/README.md and deploy to Azure
- Provide the parameters for the VM and click purchase
- Once the VM is provisioned go to the VM configuration and change the IP Address to Static
- Connect to the VM using SSH
Setup Gitlab
- Connect to the Ubuntu VM via SSH
- Install and configure the necessary dependencies
- sudo apt-get update
- sudo apt-get install -y curl openssh-server ca-certificates
- Install Postfix
- sudo apt-get install -y postfix
- During Postfix installation a configuration screen may appear. Select 'Internet Site' and press enter. Use your server's external DNS for 'mail name' and press enter. If additional screens appear, continue to press enter to accept the defaults
- Add the GitLab package repository
- Install the GitLab package. Change https://gitlab.example.comto the URL at which you want to access your GitLab instance.
- sudo EXTERNAL_URL="https://gitlab.example.com" apt-get install gitlab-ee
- Browse to the hostname and login using the default account's username root to login
- In this case> http://gitlabs.eastus.cloudapp.azure.com
Deploy webapp on azure
- Deploy ARM Template using Azure Portal:
- Create Gitlab project on Azure
- Access to Gitlab on Azure
- Create new project
- Generate your SSH Key
Setup Gitlab Continuous (CI/CD) on Azure
- Go to the Azure web app
- Choose Deployment Center
- Select Source Control "External" and click Continue
- Now in Build Provider select "App Service Build Service"
- Add the Gitlab URL and the master branch
- In choose Private Repository "YES" and provide the credentials, in this case user root and the password previously created
- Test changes on the Gitlab project running on Azure
Step-by-Step video
No RepliesBe the first to reply