Skip to content

Option to enable auto deployment on specific branches #31

Open

Description

@singhalkarun

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

Activity

  1. singhalkarun commented on Jul 24, 2024

    @singhalkarun
    Author
  2. self-assigned this
    on Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions