Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate redeployments with GitHub Actions #27

Open
justb4 opened this issue Feb 23, 2021 · 3 comments
Open

Automate redeployments with GitHub Actions #27

justb4 opened this issue Feb 23, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@justb4
Copy link
Member

justb4 commented Feb 23, 2021

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 justb4 added the enhancement New feature or request label Feb 23, 2021
@justb4
Copy link
Member Author

justb4 commented May 31, 2021

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
Copy link
Member Author

justb4 commented Jun 11, 2024

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

@justb4
Copy link
Member Author

justb4 commented Jun 11, 2024

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 pygeoapi Docker builds are moved to GH Workflows, will be easier to integrate (now HTTP-callback from DockerHub)
  • any other service like the "Home" page will be automagically deployed on GH push
  • repo is well-prepared to later move to OSGeo SAC infrastructure

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant