Skip to content

This repo is a continuation of the nodejs-bookstore-api repo. It includes enhancements such as a CI/CD pipeline using GitHub Actions and Docker integration. The CI/CD pipeline automates the build, test, and image push processes.

License

Notifications You must be signed in to change notification settings

lisenpasha/bookstore-api-cicd-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bookstore-api-cicd-docker

This repository is a continuation of the https://github.com/lisenpasha/nodejs-bookstore-api project.

It includes enhancements such as a CI/CD pipeline using GitHub Actions and Docker integration.

The CI/CD pipeline automates the build, test, and image push processes.

CI/CD Pipeline

GitHub Actions Workflow

The CI/CD pipeline is defined in the ci.yml file. It performs the following steps when there is a push to the main branch:

1. Checks out the repository.
2. Sets up Node.js.
3. Makes the setup.sh script executable.
4. Runs the setup.sh script to install dependencies, run tests, and start the services.
5. Verifies that both services are running.
6. Stops the services.
7. Builds and pushes a Docker image to Docker Hub.

Docker Integration

The Dockerfile builds a Docker image for the project, installing dependencies for both the User and Book services, and running the setup.sh script to start the services.

Setup Script

The setup.sh script installs dependencies, runs tests, and starts both services.

About

This repo is a continuation of the nodejs-bookstore-api repo. It includes enhancements such as a CI/CD pipeline using GitHub Actions and Docker integration. The CI/CD pipeline automates the build, test, and image push processes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published