I have a Ruby on Rails app for which I'm trying to automate the deployment process via GitLab's integrated CI/CD features.
Every time I push new code to GitLab, I want the script (.[login to view URL]) to:
1. Automatically test my code in GitLab
2. Automatically deploy the app to a staging server on Heroku
3. Deploy (but only after approved in GitLab Pipelines panel) the app to a production server on DigitalOcean
I have steps 1. and 2. working already.
I only need help with the step 3. - pushing to the production environment on DigitalOcean
I have just installed a fresh One-click app droplet for Ruby on Rails, so some additional DevOps work there might be necessary.
Please mention your timezone in UTC when applying.