Extend to wmde/github-webhook to deploy fundraising-frontend-content
Open, NormalPublic5 Story Points

Description

The code in https://github.com/wmde/github-webhooks should be expanded as follows:

  • have some configuration which repository names and which branches in those repositories should trigger a deployment. The configuration should map the repository name to a database file name
  • Use the configuration in app/routes.php instead of the hardcoded repository and branch names. Suggestion: Create a class that is constructed with the configuration and has a method that accepts the webhook payload and returns a boolean, replacing/encapsulating the code in https://github.com/wmde/github-webhooks/blob/master/app/routes.php#L23-L26
  • Change the files in the cli folder: each combination of repo and branch must use the right database file for the repo (again, using the configuration) and trigger a specific Ansible playbook and inventory combination. This can be achieved with individual cli scripts, like the current solution, or with one script that takes two parameters, or a combination (one cli for each repo).
gabriel-wmde renamed this task from Extend to wmde/github-webhook to deploy funraising-frontend-content to Extend to wmde/github-webhook to deploy fundraising-frontend-content.
gabriel-wmde changed the point value for this task from 3 to 5.Wed, May 17, 1:24 PM

@JeroenDeDauw Should we consider you assigned to this ticket?

I added some high level description of what the code is currently doing to the README