by OliverGilan · 5y ago · 0 comments
As a result I looked into building a CI/CD pipeline for the first time and practically every article I came across talking about “CI/CD” really just talked about CI.
Even today I have no idea how to easily automate deployments. The only service I know of that does this is Heroku. Ideally I should be able to push any changes to a master branch on Github and have those changes automatically deployed to my server. How this can be done is poorly documented from my experience and certainly nowhere near discussed as much as CI solutions.
Right now, it is triggered by a push to "master" branch, the pipeline builds the app, runs tests, creates artifacts(files to be used for release/deployment). Then, the release pipeline is triggered, this builds a "release", and deploys the application to "staging" environment used for user testing. Once, the application is approved, I have to go to Azure DevOps and confirm deployment to "Production". There are many different approaches, triggers and settings.
Check out Azure DevOps they have a lot of good information on CI/CD pipelines.
Some platforms provide this as part of their feature set (like AWS).
You talk about your side-projects - how do you deploy them today? Write a script for that and think about how many unique-to-yourself edge cases you are handling. If you believe your solution is generic and re-usable, then build that into a tool/platform for everyone and profit!
Most tools are Kubernetes-centric (i.e. FluxCD[0] or Jenkins X[1]), but there are some simpler Docker-only options as well such as Dokku[2].
[0]: https://fluxcd.io/
You don't mention what technology you are using, but maybe you didn't find the correct resources?
https://codefresh.io/docs/docs/yaml-examples/examples/#deplo...
F.D. I work for Codefresh
EDIT: I subscribe what jasonpeacock is commenting above, I think it's better expressed in those words.