Skip to content

Demo REST API built with Spring Boot, featuring three test endpoints and an automated CI/CD pipeline using GitHub Actions and Docker.

Notifications You must be signed in to change notification settings

ceurrutia/github-actions-springboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API REST de Prueba

Build Docker Java

API REST de prueba desarrollada en Java 17 con Spring Boot.

El proyecto incluye un flujo CI/CD configurado en GitHub Actions y publicación automática de la imagen en Docker Hub.

Características

  • Proyecto de ejemplo para flujos CI/CD
  • Tres endpoints REST funcionales
  • Build y push automático a Docker Hub

Tecnologías

  • Java 17
  • Spring Boot
  • Maven
  • Docker
  • GitHub Actions

Endpoints de ejemplo

Método Endpoint Descripción
GET /api/welcome Devuelve un mensaje simple
GET /api/status Muestra el estado del servicio
POST /api/data Recibe y procesa datos

Imagen Docker

Para descargar la imagen:

docker pull ceciur/api-rest-image:latest

Ejecutar el contenedor:

docker run -p 8080:8080 ceciur/api-rest-image

CI/CD

  1. Cada vez que se hace un push a la rama main, el workflow realiza los siguientes pasos:
  2. Compila el proyecto con Maven
  3. Construye la imagen Docker
  4. Publica la imagen en Docker Hub automáticamente

About

Demo REST API built with Spring Boot, featuring three test endpoints and an automated CI/CD pipeline using GitHub Actions and Docker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published