All projects

DevOps / Cloud

Code Keeper - CI/CD Platform

A self-hosted GitLab CI/CD platform that manages application delivery from code validation and security scanning to staging and production deployment on AWS.

  • GitLab
  • CI/CD Pipelines
  • Ansible
  • Docker
  • SonarQube
  • Terraform
  • AWS

Overview

Code Keeper is a complete CI/CD platform designed to automate the build, testing, security analysis, containerization, and deployment of the CRUD Master microservices.

The project uses a self-hosted GitLab instance deployed on Oracle Cloud, configured automatically with Ansible alongside GitLab Runner, Docker, and SonarQube.

Each microservice has its own repository and independent pipeline, while a dedicated infrastructure repository manages separate staging and production AWS environments using Terraform.

Application changes automatically pass through CI validation and deployment to staging before requiring manual approval for promotion to production.

Problem Statement

Manually building, testing, scanning, and deploying multiple microservices introduces inconsistent releases, repetitive work, and a higher risk of configuration or deployment errors.

This project addresses those problems by creating a centralized delivery platform where application and infrastructure changes follow automated and repeatable pipelines.

Each change is validated, tested, scanned, containerized, and deployed to staging before being explicitly promoted to production.

Features Implemented

  • Automated the deployment and configuration of a self-hosted GitLab environment using Ansible.

  • Deployed GitLab CE, GitLab Runner, Docker, PostgreSQL, and SonarQube on an Oracle Cloud host.

  • Configured GitLab Runner using the Docker executor for isolated pipeline jobs.

  • Created independent Git repositories and CI/CD pipelines for the API Gateway, Inventory, and Billing services.

  • Implemented CI stages for build, unit and integration testing, security analysis, and containerization.

  • Integrated SonarQube for static code quality and security analysis.

  • Built Docker images using rootless BuildKit and published versioned images using commit SHA tags.

  • Created separate staging and production AWS environments using reusable Terraform modules.

  • Built an infrastructure pipeline with Terraform Init, Validate, Plan, staging deployment, manual approval, and production deployment stages.

  • Automatically deployed application changes to staging after successful CI execution.

  • Added manual approval before production deployments.

  • Implemented rolling ECS deployments with health checks and automatic rollback through deployment circuit breakers.

  • Protected default branches from direct pushes and restricted deployment operations to authorized pipelines.

  • Stored pipeline credentials using protected and masked GitLab CI/CD variables.

  • Used Ansible Vault to protect GitLab, SonarQube, Docker registry, and AWS credentials.

  • Applied least-privilege IAM permissions for application deployment to AWS ECS.

  • Maintained separate Terraform state, networking, secrets, and infrastructure configuration for staging and production environments.

Technical Highlights

  • Built independent CI/CD pipelines for multiple microservices using GitLab CI.

  • Automated GitLab, Runner, Docker, and SonarQube provisioning with Ansible.

  • Integrated automated testing, SonarQube analysis, container builds, and AWS deployments into the delivery workflow.

  • Managed staging and production infrastructure through Terraform pipelines.

  • Implemented automatic staging deployment with controlled manual production promotion.

  • Secured pipelines using protected branches, masked variables, Ansible Vault, and least-privilege AWS IAM.

Impact

The project transformed the existing cloud-hosted microservices platform into an automated software delivery workflow.

Application teams can move changes from source code to staging through a consistent pipeline, while production releases remain controlled through manual approval.

Infrastructure changes follow the same promotion model, providing reproducible environments and reducing manual deployment and configuration steps across both applications and AWS infrastructure.