![]() |
VOOZH | about |
GitLab is an open source collaboration platform that provides powerful features beyond hosting a code repository. You can track issues, host packages and registries, maintain Wikis, set up continuous integration (CI) and continuous deployment (CD) pipelines, and more.
In this tutorial you’ll build a continuous deployment pipeline with GitLab. You will configure the pipeline to build a Docker image, push it to the GitLab container registry, and deploy it to your server using SSH. The pipeline will run for each commit pushed to the repository.
You will deploy a small, static web page, but the focus of this tutorial is configuring the CD pipeline. The static web page is only for demonstration purposes; you can apply the same pipeline configuration using other Docker images for the deployment as well.
When you have finished this tutorial, you can visit http://your_server_IP in a browser for the results of the automatic deployment.
Deploy your frontend applications from GitHub using DigitalOcean App Platform. Let DigitalOcean focus on scaling your app.
Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
It seems this tutorial needs to be updated, since deployment job will never be created if we have the “main” branch name in GitLab
In step 2, where we register the runner, the command parameters slightly changed over time. Do not user --register-token anymore but --token.
Example (scroll to the right to see the --token parameter)
docker exec gitlab-runner gitlab-runner register -n --url https://gitlab.com --token [replaceWithTokenFromGitlab] --executor docker --description "Deployment Runner" --docker-image "docker:stable" --docker-privileged
yes, in my example I am using docker exec, do utilize an already running docker container, but this has nothing to do with the parameter change.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.