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

Option to enable auto deployment on specific branches #31

Open
singhalkarun opened this issue Jul 8, 2024 · 1 comment
Open

Option to enable auto deployment on specific branches #31

singhalkarun opened this issue Jul 8, 2024 · 1 comment
Assignees

Comments

@singhalkarun
Copy link
Collaborator

singhalkarun commented Jul 8, 2024

ENABLE_AUTO_DEPLOY='dev,main' in environment of the repo which needs to be auto deployed

  1. Send Payload with Service name as REPO_NAME or secrets.REPO_NAME
  2. Send ENABLE_AUTO_DEPLOY in payload
  3. Trigger action in another repository with specific variables
  4. Validate from PERMIT_AUTO_DEPLOY
  5. UPDATE ENABLE_FORCE_RECREATE=0

https://github.com/Samagra-Development/devops/blob/main/examples/workflows/build-and-push.yaml

Steps to Document

  • Enable fine grained access token for organisation ()
  • Enable actions to be run from other repository in same organisation ()
  • Generate a PAT with enough permissions to trigger an action for the given repository ()
  • Add the PAT in the repo in which you want to enable auto deploy
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

2 participants