Continuous Delivery and Deployment

 Continuous Delivery and Deployment


Continuous Delivery and Deployment are key DevOps practices that involve automating the software delivery process from development to production. Tools like Jenkins and GitLab CI/CD are commonly used for Continuous Delivery and Deployment. Here's an example of using GitLab CI/CD to deploy a Node.js application to a Kubernetes cluster:

markdown


# .gitlab-ci.yml

image: node:12.16.1


stages:

  - build

  - deploy


build:

  stage: build

  script:

    - npm install

    - npm run build


deploy:

  stage: deploy

  script:

    - apt-get update && apt-get install -y curl

    - curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get-helm-3 | bash

    - helm repo add stable https://kubernetes-charts.storage.googleapis.com

    - helm install my-app ./my-app-chart

No comments:

Post a Comment

The Importance of Cybersecurity in the Digital Age

 The Importance of Cybersecurity in the Digital Age Introduction: In today's digital age, where technology is deeply intertwined with ev...