Skip to content

Latest commit

Β 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DevOps Daily πŸš€

DevOps Daily is a simple, single-page web application that displays a daily inspirational quote. This project is designed to showcase a complete DevOps workflow using Docker, GitHub Actions, and Render for CI/CD.

Website: https://devops-daily.onrender.com

πŸ“Œ Project Overview

The goal of this project is to demonstrate a real-world DevOps pipeline. Every time a quote is updated in quotes.txt and pushed to GitHub, the pipeline automatically:

Builds a new Docker image.

Pushes the image to DockerHub.

Deploys the updated app on Render.

This makes your app instantly updated with zero manual intervention.

πŸ“ Project Structure DEVOPS-DAILY/ β”œβ”€β”€ Dockerfile β”œβ”€β”€ index.html β”œβ”€β”€ quotes.txt β”œβ”€β”€ .github/workflows/main.yml β”œβ”€β”€ server.js └── README.md

Dockerfile β€” Build instructions for Docker.

index.html β€” Main webpage displaying quotes.

quotes.txt β€” List of daily quotes.

main.yml β€” GitHub Actions pipeline for CI/CD.

server.js β€” Node.js server (optional enhancement).

πŸ›  Requirements

GitHub account

Docker (optional for local development)

Node.js & npm (optional for local development)

Render account

DockerHub account

πŸš€ Local Development

Clone the repository:

git clone https://github.com/Abhilashchary/DEVOPS-DAILY.git cd DEVOPS-DAILY

Install dependencies (if using Node.js server):

npm install

Run the app locally:

npm start

Visit http://localhost:8080 to view.

🐳 Docker Setup

Build Docker image:

docker build -t devops-daily .

Run container:

docker run -p 8080:80 devops-daily

Visit http://localhost:8080.

βš™ CI/CD Pipeline (GitHub Actions)

The .github/workflows/main.yml file defines the pipeline:

Triggers: on push to main branch.

Steps:

Checkout code

Setup QEMU and Docker Buildx

Login to DockerHub

Build and push Docker image

Run tests

Cleanup containers

🌐 Deployment on Render

Steps:

Create a new web service.

Choose Docker environment.

Set environment variables:

DOCKERHUB_USERNAME

DOCKERHUB_TOKEN

RENDER_API_KEY

Set branch to main.

Enable auto-deploy.

Set build/start commands:

docker build -t devops-daily . docker run -p 8080:80 devops-daily

πŸ” Secrets Management

Render: Environment variables for sensitive data.

GitHub: Repository Secrets for CI/CD.

πŸ“„ License

This project is licensed under the MIT License.

Project Website: https://devops-daily.onrender.com

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages