https://github.com/sadeeshaperera/ci-cd-configs
CI/CD configurations scripts
https://github.com/sadeeshaperera/ci-cd-configs
ci-cd-pipeline circleci containerization devops docker dockerfile gitlab
Last synced: 6 months ago
JSON representation
CI/CD configurations scripts
- Host: GitHub
- URL: https://github.com/sadeeshaperera/ci-cd-configs
- Owner: SadeeshaPerera
- Created: 2025-01-18T19:22:27.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-20T09:15:03.000Z (12 months ago)
- Last Synced: 2025-04-22T22:05:45.753Z (12 months ago)
- Topics: ci-cd-pipeline, circleci, containerization, devops, docker, dockerfile, gitlab
- Language: Dockerfile
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CI/CD Configurations
This repository contains the configuration files and scripts to set up a robust CI/CD pipeline. The pipeline automates building, testing, and deploying applications to a cloud instance.
## Repository Structure
```
├── circleci # CircleCI workflows
├── github-actions # Github actions workflows
├── gitlab-ci # GitLab CI/CD configurations
├── dockerfiles # Docker-related configurations
└── README.md # Documentation
```
## Key Features
- **Automated Build and Test**: Ensure every commit is tested and built.
- **Dockerized Deployment**: Applications are containerized for consistency.
- **Cloud Deployment**: Automated deployment to a cloud instance.
## Prerequisites
Before setting up this pipeline, ensure you have:
1. A cloud provider account with a cloud instance configured.
2. Docker installed on your local machine and a cloud instance.
3. Necessary environment variables configured such as:
- `CLOUD_RESOURCE_ACCESS_KEY_ID`
- `CLOUD_RESOURCE_SECRET_ACCESS_KEY`
- `CLOUD_RESOURCE_INSTANCE_IP`
- `DOCKER_USERNAME`
- `DOCKER_PASSWORD`
## Workflows
### Build and Test Workflow
This workflow:
1. Builds the application Docker image.
2. Run tests to ensure code quality.
### Deployment Workflow
This workflow:
1. Pushes the Docker image to a container registry.
2. Connects to the EC2 instance via SSH.
3. Pull the latest image and restart the application.
### Author
Implemented by [Sadeesha Perera](https://github.com/SadeeshaPerera)
For questions or feedback, feel free to reach out!
