Skip to content

sreejith-p1/PingPongCI

Repository files navigation

Pong Game

A simple Pong web game with a CI/CD pipeline for build, test, SonarQube analysis, Docker image build, and push.

Pong Game Screenshot

GitHub Actions CI/CD Pipeline Overview

Efficient, automated steps GitLab pipeline:

  • Checkout code
  • Install dependencies
  • Run tests
  • SonarQube analysis (Modify)
  • Build Docker image
  • Push Docker image to registry (Modify)

GitHub Actions Pipeline Screenshot

Prerequisites

Running locally

npm install
npm start

Visit http://localhost:8080.

CI/CD

  • GitHub Actions pipeline for build, test, SonarQube scan, Docker image build and push.
  • Update .sonarcloud.properties with your project/organization details.
  • Set SONAR_TOKEN and SONAR_HOST_URL as GitHub repository secrets.
  • Uses GitHub Container Registry (ghcr.io). Update REGISTRY in workflow if using another registry.

Docker

docker build -t pong-game .
docker run -p 8080:8080 pong-game

About

Simple Ping Pong Game, POC for Gitlab Pipeline

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published