Skip to content

ci: add CI/CD workflow for build, test and publish of mylibrary-frontend #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

andresvicentehector
Copy link
Collaborator

@andresvicentehector andresvicentehector commented Apr 7, 2025

Summary

This PR introduces a CI/CD pipeline for the MyLibrary frontend using GitHub Actions.

Changes

  • Automatically builds Docker images for dev and prod environments.
  • Runs unit tests via npm test in both native and Docker environments.
  • Publishes Docker images to DockerHub on:
    • Push to main
    • Release publication
    • Manual workflow_dispatch trigger
  • Uses GitHub Secrets to handle DockerHub credentials securely.
  • Updates DockerHub description on release or dispatch if enabled.

Motivation

To automate and standardize the build and deployment process for the MyLibrary frontend, improving reliability and reducing manual effort.

Checklist

  • Build step for Docker images
  • Unit tests execution
  • Docker-based test execution
  • Conditional image publishing
  • DockerHub description updates
  • Triggered on push, PR, release, dispatch

Closes: #30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement CI/CD Pipelines for Build, Test, and Push to DockerHub
1 participant