Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 776 Bytes

Continuous Delivery via Pull requests.md

File metadata and controls

23 lines (20 loc) · 776 Bytes

Continuous Delivery via Pull requests (GitHub only)

Workflow

If you use continious delivery (such as this workflow) you may want to trigger deploy event when pull request is opened or closed. You can follow next steps to implement CD process:

  • Set repo "url" to "https://api.github.com"
  • Add filter type "pull-request-filter" as described below
  • Configure "action" that you want to listen
  • Configure branch in which pull request trying to merge (variable "ref" below)

Example

"url": "https://api.github.com/repos/olipo186/Git-Auto-Deploy",
"deploy": "echo deploying after pull request",
"filters": [
{
    "action": "closed",
    "pull_request": true,
    "pull_request.base.ref": "testing-branch"
}
]