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

Deploy to staging / dev environment only when tests pass on GitHub #4

Open
3 tasks
tushar5526 opened this issue Jun 21, 2023 · 1 comment
Open
3 tasks

Comments

@tushar5526
Copy link
Collaborator

Description

Currently, GitHub events are triggered on each push to GitHub repositories, which then notifies Jenkins to build and deploy the changes. The current DevOps setup allows us to skip the build stage and leverage GitHub actions to build the images.

Events should be triggered only when tests pass on GitHub. Also, investigate how we can call only the deploy stage if we are using GitHub actions to build the image.

Goals

  • Setting up the project locally
  • Setting up Github trigger for Jenkins

Expected Outcome

Deployment pipelines should run when tests run successfully and there should be a method to only call deploy pipelines if we are using Github actions to build our images.

Acceptance Criteria

  • A POC which implements the above functionality

Implementation Details

  • We are already using the Github plugin for Jenkins which triggers the build pipeline followed by deploy pipelines.
  • Jenkins is controlled using Jenkinsfile present in the root directory or in the build folder
  • Github webhooks are to be used to notify
  • ngrok can be used to create internet tunnels.

Mockups / Wireframes

NA


Project

UCI

Organization Name:

Samagra

Domain

E-Governance

Tech Skills Needed:

GitHub, Jenkins, Ansible

Mentor(s)

@tushar5526

Complexity

High

Category

CI/CD

Sub Category

Maintenance

@bhavyastar
Copy link

Hey @tushar5526, I would like to work on this issue.

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

No branches or pull requests

2 participants