PythonBulawayo / ChitChat

22 stars 24 forks source link

Add a GitHub Action that will SSH into our deployment server and run the ansible playbook or use a webhook to trigger an ansible action on the VPS #29

Open terrameijar opened 7 months ago

terrameijar commented 7 months ago

We need a deployment action to deploy code to the VPS Server once the lint and unit tests complete successfully.

See https://stackoverflow.com/questions/58457140/dependencies-between-workflows-on-github-actions

This depends on #28

im-machakata commented 6 months ago

I would love to work on this if it's free

terrameijar commented 6 months ago

@im-machakata that would be wonderful. The feature is available for you to work on it. Have you done this sort of thing before or would you need support to get it done?

im-machakata commented 6 months ago

Haven't heard of ansible before but I think I'll be okay 😊

terrameijar commented 6 months ago

@im-machakata Ansible is an infrastructure as code tool we can use to provision our deployment server and deploy our application code. I know ansible, so I can take care of setting it up and you can write the Github action to start the deployment.

Before deploying code, we'll need to ensure that it passes lint and unit tests, So the Deployment action should ensure that the lint and unit test actions completed successfully before attempting to deploy code to the server.

Working on this task together will allow us to learn how to co-author a Pull Request.

As a first step, please create a new branch for this feature and add a .github/workflows/deploy.yml file to the project. Once you have done that, add and commit the file and push it up to your fork and let me know so we can start collaborating on it.

How does that sound?

im-machakata commented 6 months ago

Done, https://github.com/im-machakata/ChitChat/tree/deploy