geopython / demo.pygeoapi.io

Demo setup for https://demo.pygeoapi.io
MIT License
8 stars 13 forks source link

Automate redeployments with GitHub Actions #27

Open justb4 opened 3 years ago

justb4 commented 3 years ago

Changes to the pygeoapi GitHub repo are automatically propagated via DockerHub and a DockerHub listener here.

But changes to the demo.pygeoapi.io repo like config or data changes here are not auto-deployed. Manual action via Ansible is required like:

ansible-playbook -vv deploy.yml -i hosts/demo.pygeoapi.io --tags update,pygeoapi_master etc

Also one needs SSH access.

To have full CI deployment GitHub Actions need to be developed such that anyone with commit rights to the demo repo here can redeploy a service.

Hint: there are quite some GH Actions Ansible modules available, the commands are simple enough, SSH-keying may be the biggest challenge, docs:

justb4 commented 3 years ago

To add, we apply this (remote deployment via GH Actions calling Ansible) for the Geonovum OGC API testbed: for example: https://github.com/Geonovum/ogc-api-testbed/blob/main/.github/workflows/deploy.pygeoapi.yml . We can take some ideas from there.

justb4 commented 3 months ago

This is a duplicate of #36, will merge/close that one.

justb4 commented 3 months ago

Some info From #36, may be redundant:

The current setup to maintain and deploy the various services is semi-automated: Ansible is used, but with full GitOps, coupling GitHub, GH Workflows with Ansible, we get several advantages:

As example of a fully fledged GitOps pygeoapi deployment the Geonovum OGC API Testbed project can serve as example: