thegreenwebfoundation / greencheck-api

The green web foundation API
https://www.thegreenwebfoundation.org/
Apache License 2.0
9 stars 3 forks source link

Set up deploy on merge into master with github actions #61

Open mrchrisadams opened 4 years ago

mrchrisadams commented 4 years ago

We currently deploy with ansible playbooks, but this is manual process.

It would be great to be able to trigger deploys from a github action, maybe with an action like this ansible one, that refers to playbooks we already have:

https://github.com/saubermacherag/ansible-playbook-docker-action

The other approach might be to trigger logging into the server, and running ansible from the machine itself.

https://github.com/Greening-Digital/greening-digital-ghost/blob/production/.github/workflows/cd.yml

Controlling currency of deploys

Github Actions doesn't have great concurrency control, and running two ansible playbooks together could be really messy.

It's worth looking at turnstyle for limiting the number of concurrent jobs:

https://github.com/softprops/turnstyle

mrchrisadams commented 4 years ago

@arendjantetteroo hey buddy, I've added links I found when I looked into this myself a few weeks back