Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Provide the auto deployment for the push event #217

Closed
Tracked by #29
noahingh opened this issue Nov 14, 2021 · 0 comments · Fixed by #225
Closed
Tracked by #29

Provide the auto deployment for the push event #217

noahingh opened this issue Nov 14, 2021 · 0 comments · Fixed by #225
Labels
enhancement New feature or request
Milestone

Comments

@noahingh
Copy link
Member

noahingh commented Nov 14, 2021

Description

This feature enables Gitploy to deploy automatically if a new push event is matched with the giving ref pattern. For example, it can be handy if a team wants to deploy when a pull request is merged to the main branch.

Implement

To listen for push events, Gitploy has to add the push event when it creates a new webhook. At now, Gitploy only configures the deployment_status event when a user activates a repository. (code)

And another issue is to specify who is the deployer for auto-deployment. The user who activated the repository called activator could be the deployer for auto-deployment because the activator has admin permission to post a remote deployment and is usually equal to a reviewer.

Example

envs:
  - name: prod
    auto_deploy_on: refs/heads/main
@noahingh noahingh added the enhancement New feature or request label Nov 14, 2021
@noahingh noahingh added this to the v0.4.0 milestone Nov 14, 2021
@noahingh noahingh mentioned this issue Nov 14, 2021
40 tasks
@noahingh noahingh modified the milestone: v0.4 Nov 17, 2021
@noahingh noahingh linked a pull request Nov 19, 2021 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant