Monday, June 16, 2025

CI/CD (3) - Continous Integration - Github Actions

 

   Third CI/CD tool which I created CI/CD project is GitHub Actions. My project       I builed in my Github repo https://github.com/andsidor/Complete_CICD_02.            To open Github Action, click Action button located top bar. In Github Action can be more pipeline, each .yaml file. If You decide, it can be single .yaml file.  

 

Here I listed .yaml file to show, all steps in CI/ CD pipeline. 

 

File content below. 

To connect external services with, Secretes are stored in Github Repository in which are running pipeline.

 
 
 
Let's now try to compare code from .yaml with pipeline results in logs.
 
    https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgL0AWzCnumt4xvkJzbHL05sUdEFVqKW42gfTDJ5RdahLgV9evW3S5hO8aolhqsqzEbDpfi64aW_nd4Zb7AmnnWa4agYjjTFdu8SbZggxODmdH7mm-mIL8ELZydMX_hwGqITkGHxkpoh7icoZWEJitN12v5SMAZmwSLvLSnSUSHtZ67TPyOctNAH1l7AYw/s448/Screenshot%20from%202025-06-09%2023-10-53.png     
 
Job name is defined in next line. In each step we define task to perform.  When all steps and all steps run positive, green check box is present. 


In second Job, I create SonarCube to analyze code quality.
  



, Docker image bulinding 
 

 
 
 
 

in next stage is performed Security analysis on Docker image.
 
 

 

AWS IAM +AWS ECR


 
 
 
 
 
Push to Docker Hub.




Summary:
 
+
 
-
 


No comments:

Post a Comment

K8s cluster - bash install

     In my homelab, I testes another method of installation of Kubernetes. Average time of installation of Kubernetes via Ansible was 15 min...