sawkhaing / jenkins-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build and Deploy

Prerequisite

  • Create pipeline in jenkins UI

    • Add github project path
    • Add github pull request builder
    • Add SCM and Jenkinsfile path
  • Add github auth

    • To auth with github and jenkins
  • Add docker credentials file - config.json

    • For image push to docker hub

Wrokflow

In Jenkinsfile create yaml template for require images.
Docker dind for docker build image "docker:stable-dind"
Helm for deploy builded app to the cluster "alpine/helm:3.10.2"

aks jenkins drawio

After deployed test the service

NOTE: It may take a few minutes for the LoadBalancer IP to be available.\

export SERVICE_IP=$(kubectl get svc --namespace app azt-app-azt-nginx --template "{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}")
echo http://$SERVICE_IP

Screenshot 2022-11-23 at 5 52 28 PM

pull request

About


Languages

Language:Smarty 82.1%Language:HTML 10.7%Language:Dockerfile 7.2%