CI/CD Pipeline In 1 Day
Customers often ask me how much time would it take me to build a CI/CD pipeline. When I answer that I could set something up in a day customers react surprised.
So people who are still running their blog on WordPress website should read on and take a step into the future of building and running a fast and modern website. My next blog will cover a more elaborate pipeline with more capabilities.
Created a new organization on Github and a repository that will be the new home of the source code for the company website:
Now create your own website locally and push the first result to Github and publish the static website. First, have a look Hexo website for installing Hexo on your computer and push your website to Github:
Now you need a platform to host your website. There are a couple of options. You can roll your own (S3 for example) or easily use GitHub pages, but I was wondering if there would be something better out there. After some googling, I stumbled upon github pages vs netlify and immediately I was curious about specific features like split testing and form handling. So I went for Netlify.
Using Netlify is super easy. Just connect Netlify to your repo and make sure to add the correct build command:
hexo deploy and publish directory:
public. Now optionally configure Netlify DNS and use the branches as subdomain feature or configure the DNS at your domain name hoster. Now when I push changes to my git repo, Netlify triggers a deploy. If successful in a couple of seconds later, the changes are live.