SlideShare a Scribd company logo
CI CD WORKFLOW
WITH
GITLAB
By Team CALMS Squad
Tools used
GitLab:- To manage code and versioning
Docker:- To build ship and run containers
Gitlab Runner:- For ci
Ansible:- For cicd provisioning instance
Gitlab CI/CD
with Ansible
Workflow
Gitlab ⇒ Gitlab-Runner => build docker image => Ansible
Developers pushes their code to repo.
Gitlab-Runner build job then triggers via webhook and by that application is
packaged into docker image and pushed to registry.
And Gitlab-Runner build job runs Ansible playbook which will provision server
according to Dev/stage/production environment with its dependencies and
requirements.
And after successful/unsuccessful build notification is send to team.
Gitlab-Runner build jobs examples
Running shell commands
Taking pull from git
Like installing dependencies via composer install
Cleaning Drupal caches via drush cr
Updating database via drush updb
Importing configs via drush cim and again clearing caches via drush cr
Running Ansible playbook via Gitlab-Runner
Benefits of running Ansible playbook is everything can be managed
from one place i.e playbook
Means one can clone code from repo
Installing dependencies and package app into containers and deploy it
on server.
When compared to Gitlab-runner shell commands, In playbook the shell
commands will also be executed by the playbook itself so all the things
like installing dependencies, clearing caches, updating database and
importing configs can be done easily.
Shell command example:-
● Clone code
○ if cd project_name;
○ then
○ git branch; git status; git checkout {{branch_name}}; git pull origin {{branch_name}};
○ docker exec -i {{container_name}} composer install -d /var/www/html/{{project_name}};
○ docker exec -i {{container_name}} drush cim -y --root=/var/www/html/{{project_name}}/web;
○ docker exec -i {{container_name}} drush updb -y--root=/var/www/html/{{project_name}}/web;
○ docker exec -i {{container_name}} drush cr -y --root=/var/www/html/{{project_name}}/web;
○ else
○ git clone {{github_repo_url}} project_name;
○ cd findamol;
○ git branch; git status; git checkout {{branch_name}}; git pull origin {{branch_name}};
○ docker exec -i {{container_name}} composer install -d /var/www/html/{{project_name}};
○ docker exec -i {{container_name}} drush cim -y --root=/var/www/html/{{project_name}}/web;
○ docker exec -i {{container_name}} drush updb -y --root=/var/www/html/{{project_name}}/web;
○ docker exec -i {{container_name}} drush cr -y --root=/var/www/html/{{project_name}}/web;
○ fi
Ansible playbook example:-
● Run Playbook which contains task for cloning code, installing
dependencies, updating database and configs and clearing caches
● Tasks:-
○ Clone code
○ Setup project
○ Start containers
○ Install dependencies (composer install)
○ Import configs (drush cim -y)
○ Updating database (drush updb)
○ Clear caches (drush cr)
Reach us at :
Email:
1. hi@addwebsolution.com or
2. contact@addwebsolution.com
Phone:
1. +1-302-261-5724
2. +44-020-8144-0266
3. +91 903 317 7471
We are Social:
Team Culture | LinkedIn | Happy Clients | Twitter

More Related Content

What's hot

GitOps with ArgoCD
GitOps with ArgoCDGitOps with ArgoCD
GitOps with ArgoCD
CloudOps2005
 
CICD Pipeline Using Github Actions
CICD Pipeline Using Github ActionsCICD Pipeline Using Github Actions
CICD Pipeline Using Github Actions
Kumar Shìvam
 
Gitlab ci, cncf.sk
Gitlab ci, cncf.skGitlab ci, cncf.sk
Gitlab ci, cncf.sk
Juraj Hantak
 
Introduction to Github Actions
Introduction to Github ActionsIntroduction to Github Actions
Introduction to Github Actions
Knoldus Inc.
 
GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...
GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...
GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...
GITS Indonesia
 
Git and git workflow best practice
Git and git workflow best practiceGit and git workflow best practice
Git and git workflow best practice
Majid Hosseini
 
Introduction to GitHub Actions
Introduction to GitHub ActionsIntroduction to GitHub Actions
Introduction to GitHub Actions
Knoldus Inc.
 
GitHub Actions in action
GitHub Actions in actionGitHub Actions in action
GitHub Actions in action
Oleksii Holub
 
Gitlab, GitOps & ArgoCD
Gitlab, GitOps & ArgoCDGitlab, GitOps & ArgoCD
Gitlab, GitOps & ArgoCD
Haggai Philip Zagury
 
Jenkins vs GitLab CI
Jenkins vs GitLab CIJenkins vs GitLab CI
Jenkins vs GitLab CI
CEE-SEC(R)
 
Gitlab flow solo
Gitlab flow soloGitlab flow solo
Gitlab flow solo
viniciusban
 
(Declarative) Jenkins Pipelines
(Declarative) Jenkins Pipelines(Declarative) Jenkins Pipelines
(Declarative) Jenkins Pipelines
Steffen Gebert
 
git and github
git and githubgit and github
git and github
Darren Oakley
 
Introduction to GitHub Actions
Introduction to GitHub ActionsIntroduction to GitHub Actions
Introduction to GitHub Actions
Bo-Yi Wu
 
Jenkins CI
Jenkins CIJenkins CI
Jenkins CI
Viyaan Jhiingade
 
GitLab for CI/CD process
GitLab for CI/CD processGitLab for CI/CD process
GitLab for CI/CD process
HYS Enterprise
 
CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
Edureka!
 
Introducing GitLab (June 2018)
Introducing GitLab (June 2018)Introducing GitLab (June 2018)
Introducing GitLab (June 2018)
Noa Harel
 
Github in Action
Github in ActionGithub in Action
Github in Action
Morten Christensen
 
Github - Git Training Slides: Foundations
Github - Git Training Slides: FoundationsGithub - Git Training Slides: Foundations
Github - Git Training Slides: Foundations
Lee Hanxue
 

What's hot (20)

GitOps with ArgoCD
GitOps with ArgoCDGitOps with ArgoCD
GitOps with ArgoCD
 
CICD Pipeline Using Github Actions
CICD Pipeline Using Github ActionsCICD Pipeline Using Github Actions
CICD Pipeline Using Github Actions
 
Gitlab ci, cncf.sk
Gitlab ci, cncf.skGitlab ci, cncf.sk
Gitlab ci, cncf.sk
 
Introduction to Github Actions
Introduction to Github ActionsIntroduction to Github Actions
Introduction to Github Actions
 
GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...
GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...
GITS Class #16: CI/CD (Continuous Integration & Continuous Deployment) with G...
 
Git and git workflow best practice
Git and git workflow best practiceGit and git workflow best practice
Git and git workflow best practice
 
Introduction to GitHub Actions
Introduction to GitHub ActionsIntroduction to GitHub Actions
Introduction to GitHub Actions
 
GitHub Actions in action
GitHub Actions in actionGitHub Actions in action
GitHub Actions in action
 
Gitlab, GitOps & ArgoCD
Gitlab, GitOps & ArgoCDGitlab, GitOps & ArgoCD
Gitlab, GitOps & ArgoCD
 
Jenkins vs GitLab CI
Jenkins vs GitLab CIJenkins vs GitLab CI
Jenkins vs GitLab CI
 
Gitlab flow solo
Gitlab flow soloGitlab flow solo
Gitlab flow solo
 
(Declarative) Jenkins Pipelines
(Declarative) Jenkins Pipelines(Declarative) Jenkins Pipelines
(Declarative) Jenkins Pipelines
 
git and github
git and githubgit and github
git and github
 
Introduction to GitHub Actions
Introduction to GitHub ActionsIntroduction to GitHub Actions
Introduction to GitHub Actions
 
Jenkins CI
Jenkins CIJenkins CI
Jenkins CI
 
GitLab for CI/CD process
GitLab for CI/CD processGitLab for CI/CD process
GitLab for CI/CD process
 
CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
 
Introducing GitLab (June 2018)
Introducing GitLab (June 2018)Introducing GitLab (June 2018)
Introducing GitLab (June 2018)
 
Github in Action
Github in ActionGithub in Action
Github in Action
 
Github - Git Training Slides: Foundations
Github - Git Training Slides: FoundationsGithub - Git Training Slides: Foundations
Github - Git Training Slides: Foundations
 

Similar to CI-CD WITH GITLAB WORKFLOW

[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
Leo Lorieri
 
Continuous Delivery com Docker, OpenShift e Jenkins
Continuous Delivery com Docker, OpenShift e JenkinsContinuous Delivery com Docker, OpenShift e Jenkins
Continuous Delivery com Docker, OpenShift e Jenkins
Bruno Padilha
 
Life of a Chromium Developer
Life of a Chromium DeveloperLife of a Chromium Developer
Life of a Chromium Developermpaproductions
 
Docker Essentials Workshop— Innovation Labs July 2020
Docker Essentials Workshop— Innovation Labs July 2020Docker Essentials Workshop— Innovation Labs July 2020
Docker Essentials Workshop— Innovation Labs July 2020
CloudHero
 
ContainerDayVietnam2016: Django Development with Docker
ContainerDayVietnam2016: Django Development with DockerContainerDayVietnam2016: Django Development with Docker
ContainerDayVietnam2016: Django Development with Docker
Docker-Hanoi
 
Настройка окружения для кросскомпиляции проектов на основе docker'a
Настройка окружения для кросскомпиляции проектов на основе docker'aНастройка окружения для кросскомпиляции проектов на основе docker'a
Настройка окружения для кросскомпиляции проектов на основе docker'a
corehard_by
 
Drone CI/CD 自動化測試及部署
Drone CI/CD 自動化測試及部署Drone CI/CD 自動化測試及部署
Drone CI/CD 自動化測試及部署
Bo-Yi Wu
 
DCEU 18: Developing with Docker Containers
DCEU 18: Developing with Docker ContainersDCEU 18: Developing with Docker Containers
DCEU 18: Developing with Docker Containers
Docker, Inc.
 
The Fairy Tale of the One Command Build Script
The Fairy Tale of the One Command Build ScriptThe Fairy Tale of the One Command Build Script
The Fairy Tale of the One Command Build Script
Docker, Inc.
 
Gitlab ci e kubernetes, build test and deploy your projects like a pro
Gitlab ci e kubernetes, build test and deploy your projects like a proGitlab ci e kubernetes, build test and deploy your projects like a pro
Gitlab ci e kubernetes, build test and deploy your projects like a pro
sparkfabrik
 
Capistrano deploy Magento project in an efficient way
Capistrano deploy Magento project in an efficient wayCapistrano deploy Magento project in an efficient way
Capistrano deploy Magento project in an efficient way
Sylvain Rayé
 
Using Docker For Development
Using Docker For DevelopmentUsing Docker For Development
Using Docker For Development
Laura Frank Tacho
 
PuppetConf 2016: The Challenges with Container Configuration – David Lutterko...
PuppetConf 2016: The Challenges with Container Configuration – David Lutterko...PuppetConf 2016: The Challenges with Container Configuration – David Lutterko...
PuppetConf 2016: The Challenges with Container Configuration – David Lutterko...
Puppet
 
Challenges of container configuration
Challenges of container configurationChallenges of container configuration
Challenges of container configuration
lutter
 
Docker4Drupal 2.1 for Development
Docker4Drupal 2.1 for DevelopmentDocker4Drupal 2.1 for Development
Docker4Drupal 2.1 for Development
Websolutions Agency
 
groovy & grails - lecture 9
groovy & grails - lecture 9groovy & grails - lecture 9
groovy & grails - lecture 9
Alexandre Masselot
 
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day ThailandCI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
Troublemaker Khunpech
 
Docker primer and tips
Docker primer and tipsDocker primer and tips
Docker primer and tips
Samuel Chow
 
oSC-2023-Cross-Build.pdf
oSC-2023-Cross-Build.pdfoSC-2023-Cross-Build.pdf
oSC-2023-Cross-Build.pdf
AdrianSchrter1
 
Real World Experience of Running Docker in Development and Production
Real World Experience of Running Docker in Development and ProductionReal World Experience of Running Docker in Development and Production
Real World Experience of Running Docker in Development and Production
Ben Hall
 

Similar to CI-CD WITH GITLAB WORKFLOW (20)

[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
[EXTENDED] Ceph, Docker, Heroku Slugs, CoreOS and Deis Overview
 
Continuous Delivery com Docker, OpenShift e Jenkins
Continuous Delivery com Docker, OpenShift e JenkinsContinuous Delivery com Docker, OpenShift e Jenkins
Continuous Delivery com Docker, OpenShift e Jenkins
 
Life of a Chromium Developer
Life of a Chromium DeveloperLife of a Chromium Developer
Life of a Chromium Developer
 
Docker Essentials Workshop— Innovation Labs July 2020
Docker Essentials Workshop— Innovation Labs July 2020Docker Essentials Workshop— Innovation Labs July 2020
Docker Essentials Workshop— Innovation Labs July 2020
 
ContainerDayVietnam2016: Django Development with Docker
ContainerDayVietnam2016: Django Development with DockerContainerDayVietnam2016: Django Development with Docker
ContainerDayVietnam2016: Django Development with Docker
 
Настройка окружения для кросскомпиляции проектов на основе docker'a
Настройка окружения для кросскомпиляции проектов на основе docker'aНастройка окружения для кросскомпиляции проектов на основе docker'a
Настройка окружения для кросскомпиляции проектов на основе docker'a
 
Drone CI/CD 自動化測試及部署
Drone CI/CD 自動化測試及部署Drone CI/CD 自動化測試及部署
Drone CI/CD 自動化測試及部署
 
DCEU 18: Developing with Docker Containers
DCEU 18: Developing with Docker ContainersDCEU 18: Developing with Docker Containers
DCEU 18: Developing with Docker Containers
 
The Fairy Tale of the One Command Build Script
The Fairy Tale of the One Command Build ScriptThe Fairy Tale of the One Command Build Script
The Fairy Tale of the One Command Build Script
 
Gitlab ci e kubernetes, build test and deploy your projects like a pro
Gitlab ci e kubernetes, build test and deploy your projects like a proGitlab ci e kubernetes, build test and deploy your projects like a pro
Gitlab ci e kubernetes, build test and deploy your projects like a pro
 
Capistrano deploy Magento project in an efficient way
Capistrano deploy Magento project in an efficient wayCapistrano deploy Magento project in an efficient way
Capistrano deploy Magento project in an efficient way
 
Using Docker For Development
Using Docker For DevelopmentUsing Docker For Development
Using Docker For Development
 
PuppetConf 2016: The Challenges with Container Configuration – David Lutterko...
PuppetConf 2016: The Challenges with Container Configuration – David Lutterko...PuppetConf 2016: The Challenges with Container Configuration – David Lutterko...
PuppetConf 2016: The Challenges with Container Configuration – David Lutterko...
 
Challenges of container configuration
Challenges of container configurationChallenges of container configuration
Challenges of container configuration
 
Docker4Drupal 2.1 for Development
Docker4Drupal 2.1 for DevelopmentDocker4Drupal 2.1 for Development
Docker4Drupal 2.1 for Development
 
groovy & grails - lecture 9
groovy & grails - lecture 9groovy & grails - lecture 9
groovy & grails - lecture 9
 
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day ThailandCI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
 
Docker primer and tips
Docker primer and tipsDocker primer and tips
Docker primer and tips
 
oSC-2023-Cross-Build.pdf
oSC-2023-Cross-Build.pdfoSC-2023-Cross-Build.pdf
oSC-2023-Cross-Build.pdf
 
Real World Experience of Running Docker in Development and Production
Real World Experience of Running Docker in Development and ProductionReal World Experience of Running Docker in Development and Production
Real World Experience of Running Docker in Development and Production
 

More from AddWeb Solution Pvt. Ltd.

A Brief About AddWeb Solution's Services
A Brief About AddWeb Solution's ServicesA Brief About AddWeb Solution's Services
A Brief About AddWeb Solution's Services
AddWeb Solution Pvt. Ltd.
 
Top SaaS Frameworks for Software Product Development.pdf
Top SaaS Frameworks for Software Product Development.pdfTop SaaS Frameworks for Software Product Development.pdf
Top SaaS Frameworks for Software Product Development.pdf
AddWeb Solution Pvt. Ltd.
 
The Ultimate Step-by-Step Guide to Develop a Calendar App.pdf
The Ultimate Step-by-Step Guide to Develop a Calendar App.pdfThe Ultimate Step-by-Step Guide to Develop a Calendar App.pdf
The Ultimate Step-by-Step Guide to Develop a Calendar App.pdf
AddWeb Solution Pvt. Ltd.
 
Top Exclusive Mobile App Ideas for Real Estate Businesses.pdf
Top Exclusive Mobile App Ideas for Real Estate Businesses.pdfTop Exclusive Mobile App Ideas for Real Estate Businesses.pdf
Top Exclusive Mobile App Ideas for Real Estate Businesses.pdf
AddWeb Solution Pvt. Ltd.
 
How to Start A Food Delivery Business Like DoorDash in 2024.pdf
How to Start A Food Delivery Business Like DoorDash in 2024.pdfHow to Start A Food Delivery Business Like DoorDash in 2024.pdf
How to Start A Food Delivery Business Like DoorDash in 2024.pdf
AddWeb Solution Pvt. Ltd.
 
Choosing the Right Node.js Framework For App Development 2024.pdf
Choosing the Right Node.js Framework For App Development 2024.pdfChoosing the Right Node.js Framework For App Development 2024.pdf
Choosing the Right Node.js Framework For App Development 2024.pdf
AddWeb Solution Pvt. Ltd.
 
The Complete Guide to Serverless Computing.pdf
The Complete Guide to Serverless Computing.pdfThe Complete Guide to Serverless Computing.pdf
The Complete Guide to Serverless Computing.pdf
AddWeb Solution Pvt. Ltd.
 
How to Implement Content Marketing for Ecommerce SEO.pdf
How to Implement Content Marketing for Ecommerce SEO.pdfHow to Implement Content Marketing for Ecommerce SEO.pdf
How to Implement Content Marketing for Ecommerce SEO.pdf
AddWeb Solution Pvt. Ltd.
 
Why Use Vue JS The Ultimate Guide for Frontend Every Aspect Covered.pdf
Why Use Vue JS The Ultimate Guide for Frontend Every Aspect Covered.pdfWhy Use Vue JS The Ultimate Guide for Frontend Every Aspect Covered.pdf
Why Use Vue JS The Ultimate Guide for Frontend Every Aspect Covered.pdf
AddWeb Solution Pvt. Ltd.
 
Everything to Know About Custom Healthcare App Development.pdf
Everything to Know About Custom Healthcare App Development.pdfEverything to Know About Custom Healthcare App Development.pdf
Everything to Know About Custom Healthcare App Development.pdf
AddWeb Solution Pvt. Ltd.
 
How Much Does It Cost to Build a React Native App in 2024.pdf
How Much Does It Cost to Build a React Native App in 2024.pdfHow Much Does It Cost to Build a React Native App in 2024.pdf
How Much Does It Cost to Build a React Native App in 2024.pdf
AddWeb Solution Pvt. Ltd.
 
How Much Does HR & Staffing Software Development Cost.pdf
How Much Does HR & Staffing Software Development Cost.pdfHow Much Does HR & Staffing Software Development Cost.pdf
How Much Does HR & Staffing Software Development Cost.pdf
AddWeb Solution Pvt. Ltd.
 
Guide to Developing a Cloud Based SaaS App
Guide to Developing a Cloud Based SaaS AppGuide to Developing a Cloud Based SaaS App
Guide to Developing a Cloud Based SaaS App
AddWeb Solution Pvt. Ltd.
 
Why Choose Drupal As Your Restaurant CMS In 2024.pdf
Why Choose Drupal As Your Restaurant CMS In 2024.pdfWhy Choose Drupal As Your Restaurant CMS In 2024.pdf
Why Choose Drupal As Your Restaurant CMS In 2024.pdf
AddWeb Solution Pvt. Ltd.
 
Why Use CakePHP Over Other Web Frameworks Explore Pros & Cons.pdf
Why Use CakePHP Over Other Web Frameworks Explore Pros & Cons.pdfWhy Use CakePHP Over Other Web Frameworks Explore Pros & Cons.pdf
Why Use CakePHP Over Other Web Frameworks Explore Pros & Cons.pdf
AddWeb Solution Pvt. Ltd.
 
How to Hire a DevOps Consultant in 2024.pdf
How to Hire a DevOps Consultant in 2024.pdfHow to Hire a DevOps Consultant in 2024.pdf
How to Hire a DevOps Consultant in 2024.pdf
AddWeb Solution Pvt. Ltd.
 
Importance of UXUi in Mobile App Development.pdf
Importance of UXUi in Mobile App Development.pdfImportance of UXUi in Mobile App Development.pdf
Importance of UXUi in Mobile App Development.pdf
AddWeb Solution Pvt. Ltd.
 
Features and Benefits of Logistics Software Development.pdf
Features and Benefits of Logistics Software Development.pdfFeatures and Benefits of Logistics Software Development.pdf
Features and Benefits of Logistics Software Development.pdf
AddWeb Solution Pvt. Ltd.
 
The Pros and Cons of Flutter App Development.pdf
The Pros and Cons of Flutter App Development.pdfThe Pros and Cons of Flutter App Development.pdf
The Pros and Cons of Flutter App Development.pdf
AddWeb Solution Pvt. Ltd.
 
Cost and Features of Developing a Successful Food Delivery Application.pdf
Cost and Features of Developing a Successful Food Delivery Application.pdfCost and Features of Developing a Successful Food Delivery Application.pdf
Cost and Features of Developing a Successful Food Delivery Application.pdf
AddWeb Solution Pvt. Ltd.
 

More from AddWeb Solution Pvt. Ltd. (20)

A Brief About AddWeb Solution's Services
A Brief About AddWeb Solution's ServicesA Brief About AddWeb Solution's Services
A Brief About AddWeb Solution's Services
 
Top SaaS Frameworks for Software Product Development.pdf
Top SaaS Frameworks for Software Product Development.pdfTop SaaS Frameworks for Software Product Development.pdf
Top SaaS Frameworks for Software Product Development.pdf
 
The Ultimate Step-by-Step Guide to Develop a Calendar App.pdf
The Ultimate Step-by-Step Guide to Develop a Calendar App.pdfThe Ultimate Step-by-Step Guide to Develop a Calendar App.pdf
The Ultimate Step-by-Step Guide to Develop a Calendar App.pdf
 
Top Exclusive Mobile App Ideas for Real Estate Businesses.pdf
Top Exclusive Mobile App Ideas for Real Estate Businesses.pdfTop Exclusive Mobile App Ideas for Real Estate Businesses.pdf
Top Exclusive Mobile App Ideas for Real Estate Businesses.pdf
 
How to Start A Food Delivery Business Like DoorDash in 2024.pdf
How to Start A Food Delivery Business Like DoorDash in 2024.pdfHow to Start A Food Delivery Business Like DoorDash in 2024.pdf
How to Start A Food Delivery Business Like DoorDash in 2024.pdf
 
Choosing the Right Node.js Framework For App Development 2024.pdf
Choosing the Right Node.js Framework For App Development 2024.pdfChoosing the Right Node.js Framework For App Development 2024.pdf
Choosing the Right Node.js Framework For App Development 2024.pdf
 
The Complete Guide to Serverless Computing.pdf
The Complete Guide to Serverless Computing.pdfThe Complete Guide to Serverless Computing.pdf
The Complete Guide to Serverless Computing.pdf
 
How to Implement Content Marketing for Ecommerce SEO.pdf
How to Implement Content Marketing for Ecommerce SEO.pdfHow to Implement Content Marketing for Ecommerce SEO.pdf
How to Implement Content Marketing for Ecommerce SEO.pdf
 
Why Use Vue JS The Ultimate Guide for Frontend Every Aspect Covered.pdf
Why Use Vue JS The Ultimate Guide for Frontend Every Aspect Covered.pdfWhy Use Vue JS The Ultimate Guide for Frontend Every Aspect Covered.pdf
Why Use Vue JS The Ultimate Guide for Frontend Every Aspect Covered.pdf
 
Everything to Know About Custom Healthcare App Development.pdf
Everything to Know About Custom Healthcare App Development.pdfEverything to Know About Custom Healthcare App Development.pdf
Everything to Know About Custom Healthcare App Development.pdf
 
How Much Does It Cost to Build a React Native App in 2024.pdf
How Much Does It Cost to Build a React Native App in 2024.pdfHow Much Does It Cost to Build a React Native App in 2024.pdf
How Much Does It Cost to Build a React Native App in 2024.pdf
 
How Much Does HR & Staffing Software Development Cost.pdf
How Much Does HR & Staffing Software Development Cost.pdfHow Much Does HR & Staffing Software Development Cost.pdf
How Much Does HR & Staffing Software Development Cost.pdf
 
Guide to Developing a Cloud Based SaaS App
Guide to Developing a Cloud Based SaaS AppGuide to Developing a Cloud Based SaaS App
Guide to Developing a Cloud Based SaaS App
 
Why Choose Drupal As Your Restaurant CMS In 2024.pdf
Why Choose Drupal As Your Restaurant CMS In 2024.pdfWhy Choose Drupal As Your Restaurant CMS In 2024.pdf
Why Choose Drupal As Your Restaurant CMS In 2024.pdf
 
Why Use CakePHP Over Other Web Frameworks Explore Pros & Cons.pdf
Why Use CakePHP Over Other Web Frameworks Explore Pros & Cons.pdfWhy Use CakePHP Over Other Web Frameworks Explore Pros & Cons.pdf
Why Use CakePHP Over Other Web Frameworks Explore Pros & Cons.pdf
 
How to Hire a DevOps Consultant in 2024.pdf
How to Hire a DevOps Consultant in 2024.pdfHow to Hire a DevOps Consultant in 2024.pdf
How to Hire a DevOps Consultant in 2024.pdf
 
Importance of UXUi in Mobile App Development.pdf
Importance of UXUi in Mobile App Development.pdfImportance of UXUi in Mobile App Development.pdf
Importance of UXUi in Mobile App Development.pdf
 
Features and Benefits of Logistics Software Development.pdf
Features and Benefits of Logistics Software Development.pdfFeatures and Benefits of Logistics Software Development.pdf
Features and Benefits of Logistics Software Development.pdf
 
The Pros and Cons of Flutter App Development.pdf
The Pros and Cons of Flutter App Development.pdfThe Pros and Cons of Flutter App Development.pdf
The Pros and Cons of Flutter App Development.pdf
 
Cost and Features of Developing a Successful Food Delivery Application.pdf
Cost and Features of Developing a Successful Food Delivery Application.pdfCost and Features of Developing a Successful Food Delivery Application.pdf
Cost and Features of Developing a Successful Food Delivery Application.pdf
 

Recently uploaded

Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
Fwdays
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 

Recently uploaded (20)

Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 

CI-CD WITH GITLAB WORKFLOW

  • 1. CI CD WORKFLOW WITH GITLAB By Team CALMS Squad
  • 2. Tools used GitLab:- To manage code and versioning Docker:- To build ship and run containers Gitlab Runner:- For ci Ansible:- For cicd provisioning instance
  • 4. Workflow Gitlab ⇒ Gitlab-Runner => build docker image => Ansible Developers pushes their code to repo. Gitlab-Runner build job then triggers via webhook and by that application is packaged into docker image and pushed to registry. And Gitlab-Runner build job runs Ansible playbook which will provision server according to Dev/stage/production environment with its dependencies and requirements. And after successful/unsuccessful build notification is send to team.
  • 5. Gitlab-Runner build jobs examples Running shell commands Taking pull from git Like installing dependencies via composer install Cleaning Drupal caches via drush cr Updating database via drush updb Importing configs via drush cim and again clearing caches via drush cr
  • 6. Running Ansible playbook via Gitlab-Runner Benefits of running Ansible playbook is everything can be managed from one place i.e playbook Means one can clone code from repo Installing dependencies and package app into containers and deploy it on server. When compared to Gitlab-runner shell commands, In playbook the shell commands will also be executed by the playbook itself so all the things like installing dependencies, clearing caches, updating database and importing configs can be done easily.
  • 7. Shell command example:- ● Clone code ○ if cd project_name; ○ then ○ git branch; git status; git checkout {{branch_name}}; git pull origin {{branch_name}}; ○ docker exec -i {{container_name}} composer install -d /var/www/html/{{project_name}}; ○ docker exec -i {{container_name}} drush cim -y --root=/var/www/html/{{project_name}}/web; ○ docker exec -i {{container_name}} drush updb -y--root=/var/www/html/{{project_name}}/web; ○ docker exec -i {{container_name}} drush cr -y --root=/var/www/html/{{project_name}}/web; ○ else ○ git clone {{github_repo_url}} project_name; ○ cd findamol; ○ git branch; git status; git checkout {{branch_name}}; git pull origin {{branch_name}}; ○ docker exec -i {{container_name}} composer install -d /var/www/html/{{project_name}}; ○ docker exec -i {{container_name}} drush cim -y --root=/var/www/html/{{project_name}}/web; ○ docker exec -i {{container_name}} drush updb -y --root=/var/www/html/{{project_name}}/web; ○ docker exec -i {{container_name}} drush cr -y --root=/var/www/html/{{project_name}}/web; ○ fi
  • 8. Ansible playbook example:- ● Run Playbook which contains task for cloning code, installing dependencies, updating database and configs and clearing caches ● Tasks:- ○ Clone code ○ Setup project ○ Start containers ○ Install dependencies (composer install) ○ Import configs (drush cim -y) ○ Updating database (drush updb) ○ Clear caches (drush cr)
  • 9. Reach us at : Email: 1. hi@addwebsolution.com or 2. contact@addwebsolution.com Phone: 1. +1-302-261-5724 2. +44-020-8144-0266 3. +91 903 317 7471 We are Social: Team Culture | LinkedIn | Happy Clients | Twitter