Add gogs pull request webhook for manage environments branches
This commit is contained in:
parent
945cd4729a
commit
20c38ac45e
2 changed files with 114 additions and 0 deletions
|
|
@ -47,3 +47,18 @@ deploy:
|
|||
mage:
|
||||
env: %ENVIRONMENT%
|
||||
```
|
||||
|
||||
|
||||
Webhooks to include branches in the environment
|
||||
-----------------------------------------------
|
||||
|
||||
### GOGS
|
||||
|
||||
Prepare project in GOGS web-admin:
|
||||
|
||||
* Create webhook
|
||||
* Set "Payload URL" to php-censor webhook URL `http://domain.tld/webhook/gogs/project`
|
||||
* Enable triggering "Pull request"
|
||||
* Create labels for your environments in the format: "env:environment-name", for example "env:test"
|
||||
|
||||
After creating the pull request, to include the branch in the environment, add the appropriate labels.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue