Skip to content
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

feature: Create CI/CD for backend deploys #2

Open
RafaDSan opened this issue Dec 23, 2024 · 1 comment
Open

feature: Create CI/CD for backend deploys #2

RafaDSan opened this issue Dec 23, 2024 · 1 comment
Assignees

Comments

@RafaDSan
Copy link
Collaborator

RafaDSan commented Dec 23, 2024

1. Set up GitHub Actions

  • Create .github/workflows directory in the repository
  • Create workflow file: main.yml for the CI/CD pipeline
  • Check an example here

2. Configure Pipeline Steps

  • Install Node.js
  • Cache npm dependencies
  • Install project dependencies
  • Build the application
3. Deployment
  • Set up environment secrets in GitHub
  • Configure deployment steps for each environment:
    Build Docker image
    Push to registry
    Deploy to server

Important notes:

Ensure all environment variables are properly set in GitHub Secrets
Test the pipeline in a feature branch before merging to main branches

Set up branch protection rules:

  • Require passing CI checks before merging
@RafaDSan RafaDSan self-assigned this Dec 23, 2024
@RafaDSan
Copy link
Collaborator Author

P2 as it is a nice automation to have but it does not block any tasks

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

No branches or pull requests

1 participant