Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZonedAccuracy CI/CD DevOps Pipeline

Automated CI/CD pipeline demonstrating application testing, containerization, continuous integration, and container publishing using GitHub Actions and Docker.

Overview

This project is part of the ZonedAccuracy Cloud Portfolio and demonstrates a production-style DevOps workflow for automatically testing, building, and publishing containerized applications.

Pipeline Architecture

Developer Push
      |
      v
    GitHub
      |
      v
GitHub Actions CI
      |
      +----> Node.js Tests
      |          |
      |          v
      |       3 Tests Pass
      |
      +----> Docker Build
                 |
                 v
           CI Successful
                 |
                 v
         GitHub Actions CD
                 |
                 v
        Production Docker Build
                 |
                 v
      GitHub Container Registry
                 |
                 v
       Versioned Container Image

Continuous Integration

Every push or pull request to main automatically:

  • Checks out the repository
  • Configures Node.js
  • Executes automated tests
  • Verifies application behavior
  • Builds the Docker container
  • Prevents CD execution when CI fails

Continuous Deployment

After a successful CI workflow, the CD pipeline automatically:

  • Checks out the validated source code
  • Configures Docker Buildx
  • Authenticates to GitHub Container Registry
  • Builds the production container
  • Generates container metadata
  • Publishes the image to GitHub Container Registry
  • Creates latest and commit SHA image tags

Application

The containerized Node.js service exposes:

GET /
GET /health

Health response:

{
  "status": "healthy",
  "service": "zonedaccuracy-cicd"
}

Automated Testing

The test suite verifies:

  • Root endpoint availability
  • Health endpoint functionality
  • HTTP 404 handling

Run locally:

npm test

Docker

Build:

docker build -t zonedaccuracy-cicd:1.0.0 .

Run:

docker run -d \
  --name zonedaccuracy-cicd \
  -p 3000:3000 \
  zonedaccuracy-cicd:1.0.0

Test:

curl http://localhost:3000/health

CI/CD Workflows

.github/
└── workflows/
    ├── ci.yml
    └── cd.yml

CI Workflow

ci.yml

Responsible for automated testing and Docker build validation.

CD Workflow

cd.yml

Runs only after successful CI and publishes the validated container image.

Technologies

  • GitHub Actions
  • Docker
  • GitHub Container Registry
  • Node.js
  • Git
  • GitHub
  • YAML
  • Linux CI runners

DevOps Concepts Demonstrated

  • Continuous Integration
  • Continuous Deployment
  • Automated testing
  • Containerization
  • Artifact publishing
  • Pipeline dependencies
  • Health checks
  • Immutable container tagging
  • Git-based automation
  • CI quality gates

Portfolio

Part of the ZonedAccuracy Cloud Portfolio.

ZonedAccuracy.com

About

Automated CI/CD pipeline using GitHub Actions, Docker, Node.js, and GitHub Container Registry.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages